From 24ae0c426c25ad116c5a7b57b0dd0102f5833cb7 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 e968ec469..7ac5fb54f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -2995,6 +2995,7 @@ pub mod keys { // Connection punch-through options pub const OPTION_ENABLE_UDP_PUNCH: &str = "enable-udp-punch"; pub const OPTION_ENABLE_IPV6_PUNCH: &str = "enable-ipv6-punch"; + 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"; @@ -3126,6 +3127,7 @@ pub mod keys { OPTION_VIDEO_SAVE_DIRECTORY, OPTION_ENABLE_UDP_PUNCH, OPTION_ENABLE_IPV6_PUNCH, + OPTION_ENABLE_WEBRTC, OPTION_TOUCH_MODE, OPTION_SHOW_VIRTUAL_MOUSE, OPTION_SHOW_VIRTUAL_JOYSTICK,