From f32373643e681a0756dba233f46218f6cef86a54 Mon Sep 17 00:00:00 2001 From: xuwenwei Date: Wed, 10 Jun 2026 00:16:50 +0800 Subject: [PATCH] Default ON: enable-keyboard, enable-clipboard, enable-file-transfer Per user feedback: these 3 features are core remote-support functionality (typing, copying, sending files). 6d587a8 set them to N to save bandwidth on the 5 Mbps self-hosted hbbs (114.55.133.123), but the user wants them on by default. Users can still flip them off per-session. Still OFF by default (kept from 6d587a8): - enable-audio - enable-tunnel - enable-record-session - enable-camera Co-Authored-By: Claude Opus 4.8 --- src/common.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/common.rs b/src/common.rs index da5b4cf..713f1f6 100644 --- a/src/common.rs +++ b/src/common.rs @@ -2112,18 +2112,18 @@ pub fn load_custom_client() { // // Why each one is off (user has 4 users on 5 Mbps server, file transfers were saturating it): // enable-audio — not needed for 4-user remote support; saves 64 kbps/session - // enable-file-transfer — THE KILLER: 1 GB upload = 2 GB server bandwidth (in + out) - // enable-clipboard — 50 kbps + privacy; rarely needed for remote support - // enable-keyboard — only needed for typing-on-remote scenarios // enable-tunnel — TCP tunneling = users abusing server as a jump host // enable-record-session — only needed if explicitly recording // enable-camera — 500 kbps; rarely used for support + // + // Note: enable-keyboard, enable-clipboard, enable-file-transfer were + // originally set to N here, but the user requested they default to ON + // (these are core remote-support features: typing, copying, sending + // files to/from the remote machine). The user can still flip them off + // per-session via the Settings UI. { let mut defaults = config::DEFAULT_SETTINGS.write().unwrap(); defaults.entry("enable-audio".to_string()).or_insert("N".to_string()); - defaults.entry("enable-file-transfer".to_string()).or_insert("N".to_string()); - defaults.entry("enable-clipboard".to_string()).or_insert("N".to_string()); - defaults.entry("enable-keyboard".to_string()).or_insert("N".to_string()); defaults.entry("enable-tunnel".to_string()).or_insert("N".to_string()); defaults.entry("enable-record-session".to_string()).or_insert("N".to_string()); defaults.entry("enable-camera".to_string()).or_insert("N".to_string());