From 603edc758103328d896c8b7a40e2ca6087e9797e Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 7 Aug 2026 13:45:32 +0800 Subject: [PATCH] config: OPTION_ENABLE_WEBRTC, defaulted like the punch options Same pattern as enable-udp-punch / enable-ipv6-punch: empty value reads as on against the public server and off against a private one (the injection lives in rustdesk's get_local_option), so self-hosted deployments opt in once their server / TURN is ready. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01ExUfAkYbq8UC9pQCiLy8TQ --- src/config.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config.rs b/src/config.rs index 582836420..ce480de7b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -2997,6 +2997,7 @@ pub mod keys { 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"; + pub const OPTION_ENABLE_WEBRTC: &str = "enable-webrtc"; pub const OPTION_HIDE_USERNAME_ON_CARD: &str = "hide-username-on-card"; pub const OPTION_HIDE_HELP_CARDS: &str = "hide-help-cards"; pub const OPTION_DEFAULT_CONNECT_PASSWORD: &str = "default-connect-password"; @@ -3136,6 +3137,7 @@ pub mod keys { OPTION_ENABLE_UDP_PUNCH, OPTION_ENABLE_IPV6_PUNCH, OPTION_ENABLE_PORT_FORWARD_MUX, + OPTION_ENABLE_WEBRTC, OPTION_TOUCH_MODE, OPTION_SHOW_VIRTUAL_MOUSE, OPTION_SHOW_VIRTUAL_JOYSTICK,