From e813e58887ac41e6471aafb925f05bdf5ed9645c Mon Sep 17 00:00:00 2001 From: rustdesk Date: Mon, 24 Aug 2026 17:30:05 +0800 Subject: [PATCH] config: add OPTION_ENABLE_TCP_PUNCH The client gains a switch for the TCP punch alongside the UDP, IPv6 and WebRTC ones. Its "enable-" prefix gives it the usual default-on semantics; unlike its siblings it is deliberately left out of the self-hosted default-off list on the client side, since every hbbs has always supported TCP punching. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_016HV43uh1ztv6Wm5qi3Y1ne --- src/config.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config.rs b/src/config.rs index a0fca46e9..dfd6c077a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -2994,6 +2994,7 @@ pub mod keys { "allow-command-line-settings-when-settings-disabled"; // Connection punch-through / port-forward options + pub const OPTION_ENABLE_TCP_PUNCH: &str = "enable-tcp-punch"; pub const OPTION_ENABLE_UDP_PUNCH: &str = "enable-udp-punch"; pub const OPTION_ENABLE_IPV6_PUNCH: &str = "enable-ipv6-punch"; pub const OPTION_ENABLE_PORT_FORWARD_MUX: &str = "enable-port-forward-mux"; @@ -3135,6 +3136,7 @@ pub mod keys { OPTION_ALLOW_AUTO_RECORD_OUTGOING, OPTION_HIDE_RECORDING_BUTTON, OPTION_VIDEO_SAVE_DIRECTORY, + OPTION_ENABLE_TCP_PUNCH, OPTION_ENABLE_UDP_PUNCH, OPTION_ENABLE_IPV6_PUNCH, OPTION_ENABLE_PORT_FORWARD_MUX,