fix punch option for non-public

This commit is contained in:
rustdesk
2025-06-15 14:58:12 +08:00
parent 44e00f8ec2
commit 14a8f00e5b

View File

@@ -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 ||