Skip to content

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

fix punch option for non-public

rustdesk14a8f00e5b31
diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart
index 85f2f5c65..5b58639ba 100644
--- a/flutter/lib/common.dart
+++ b/flutter/lib/common.dart
@@ -1571,7 +1571,7 @@ bool option2bool(String option, String value) {
String bool2option(String option, bool b) {
String res;
- if (option.startsWith('enable-')) {
+ if (option.startsWith('enable-') && option != kOptionEnableUdpPunch && option != kOptionEnableIpv6Punch) {
res = b ? defaultOptionYes : 'N';
} else if (option.startsWith('allow-') ||
option == kOptionStopService ||