Update config.rs

This commit is contained in:
RustDesk 2025-06-14 21:16:41 +08:00 committed by GitHub
parent 78facdf759
commit 92ca2ca8be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2468,7 +2468,7 @@ pub mod keys {
pub const OPTION_TRACKPAD_SPEED: &str = "trackpad-speed"; pub const OPTION_TRACKPAD_SPEED: &str = "trackpad-speed";
pub const OPTION_REGISTER_DEVICE: &str = "register-device"; pub const OPTION_REGISTER_DEVICE: &str = "register-device";
// buildin options // built-in options
pub const OPTION_DISPLAY_NAME: &str = "display-name"; pub const OPTION_DISPLAY_NAME: &str = "display-name";
pub const OPTION_DISABLE_UDP: &str = "disable-udp"; pub const OPTION_DISABLE_UDP: &str = "disable-udp";
pub const OPTION_PRESET_DEVICE_GROUP_NAME: &str = "preset-device-group-name"; pub const OPTION_PRESET_DEVICE_GROUP_NAME: &str = "preset-device-group-name";
@ -2481,6 +2481,10 @@ pub mod keys {
pub const OPTION_HIDE_PROXY_SETTINGS: &str = "hide-proxy-settings"; pub const OPTION_HIDE_PROXY_SETTINGS: &str = "hide-proxy-settings";
pub const OPTION_HIDE_REMOTE_PRINTER_SETTINGS: &str = "hide-remote-printer-settings"; pub const OPTION_HIDE_REMOTE_PRINTER_SETTINGS: &str = "hide-remote-printer-settings";
pub const OPTION_HIDE_WEBSOCKET_SETTINGS: &str = "hide-websocket-settings"; pub const OPTION_HIDE_WEBSOCKET_SETTINGS: &str = "hide-websocket-settings";
// 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_HIDE_USERNAME_ON_CARD: &str = "hide-username-on-card"; 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_HIDE_HELP_CARDS: &str = "hide-help-cards";
pub const OPTION_DEFAULT_CONNECT_PASSWORD: &str = "default-connect-password"; pub const OPTION_DEFAULT_CONNECT_PASSWORD: &str = "default-connect-password";
@ -2588,6 +2592,8 @@ pub mod keys {
OPTION_ALLOW_REMOTE_CM_MODIFICATION, OPTION_ALLOW_REMOTE_CM_MODIFICATION,
OPTION_ALLOW_AUTO_RECORD_OUTGOING, OPTION_ALLOW_AUTO_RECORD_OUTGOING,
OPTION_VIDEO_SAVE_DIRECTORY, OPTION_VIDEO_SAVE_DIRECTORY,
OPTION_ENABLE_UDP_PUNCH,
OPTION_ENABLE_IPV6_PUNCH,
]; ];
// DEFAULT_SETTINGS, OVERWRITE_SETTINGS // DEFAULT_SETTINGS, OVERWRITE_SETTINGS
pub const KEYS_SETTINGS: &[&str] = &[ pub const KEYS_SETTINGS: &[&str] = &[
@ -2661,6 +2667,7 @@ pub mod keys {
]; ];
} }
pub fn common_load< pub fn common_load<
T: serde::Serialize + serde::de::DeserializeOwned + Default + std::fmt::Debug, T: serde::Serialize + serde::de::DeserializeOwned + Default + std::fmt::Debug,
>( >(