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;