From 1f8463d720e9d9452be75d3b5e584a787ad34385 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Mon, 10 Aug 2026 18:55:37 +0800 Subject: [PATCH] config: add OPTION_ENABLE_KCP_CC to config::keys Options belong in this crate (AGENTS.md), and being here also lets a branded installer pre-set it via KEYS_SETTINGS, which a bare const in src/common.rs could not. 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 7ac5fb54f..98df0bbc8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -2996,6 +2996,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_WEBRTC: &str = "enable-webrtc"; + pub const OPTION_ENABLE_KCP_CC: &str = "enable-kcp-congestion-control"; 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"; @@ -3194,6 +3195,7 @@ pub mod keys { OPTION_ALLOW_INSECURE_TLS_FALLBACK, OPTION_KEEP_AWAKE_DURING_INCOMING_SESSIONS, OPTION_ALLOW_AUTO_UPDATE, + OPTION_ENABLE_KCP_CC, ]; // BUILDIN_SETTINGS