From 2f7536527d1d2d41480ee7ca4d568005fd003eba Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 25 Aug 2026 17:00:32 +0800 Subject: [PATCH] config: name the KCP congestion-control option for what it does `option2bool` reads an `enable-` option as on unless it is literally "N", while this one's accessor required a literal "Y" - the name promised default-on and the code shipped default-off. `allow-` is the prefix whose rule matches the behaviour that already ships, so the rename settles the contradiction without moving a single user's transport. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_019UzcMTdYTEv2QbMHcTSUy3 --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 02fabd7ae..793ad4777 100644 --- a/src/config.rs +++ b/src/config.rs @@ -2997,7 +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_WEBRTC: &str = "enable-webrtc"; - pub const OPTION_ENABLE_KCP_CC: &str = "enable-kcp-congestion-control"; + pub const OPTION_ALLOW_KCP_CC: &str = "allow-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"; @@ -3197,7 +3197,7 @@ pub mod keys { OPTION_ALLOW_INSECURE_TLS_FALLBACK, OPTION_KEEP_AWAKE_DURING_INCOMING_SESSIONS, OPTION_ALLOW_AUTO_UPDATE, - OPTION_ENABLE_KCP_CC, + OPTION_ALLOW_KCP_CC, ]; // BUILDIN_SETTINGS