Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

opt assert for debug (#12420)

21pages2282c8e30897
diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart
index f54b88e88..fda3f84e3 100644
--- a/flutter/lib/common.dart
+++ b/flutter/lib/common.dart
@@ -1583,7 +1583,9 @@ String bool2option(String option, bool b) {
option == kOptionForceAlwaysRelay) {
res = b ? 'Y' : defaultOptionNo;
} else {
- assert(false);
+ if (option != kOptionEnableUdpPunch && option != kOptionEnableIpv6Punch) {
+ assert(false);
+ }
res = b ? 'Y' : 'N';
}
return res;