From 14a8f00e5b31b50547536b8cfa12a360000b4295 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sun, 15 Jun 2025 14:58:12 +0800 Subject: [PATCH] fix punch option for non-public --- flutter/lib/common.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ||