diff --git a/src/config.rs b/src/config.rs index b62de81..b3f0cd4 100644 --- a/src/config.rs +++ b/src/config.rs @@ -2468,7 +2468,7 @@ pub mod keys { pub const OPTION_TRACKPAD_SPEED: &str = "trackpad-speed"; pub const OPTION_REGISTER_DEVICE: &str = "register-device"; - // buildin options + // built-in options pub const OPTION_DISPLAY_NAME: &str = "display-name"; pub const OPTION_DISABLE_UDP: &str = "disable-udp"; 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_REMOTE_PRINTER_SETTINGS: &str = "hide-remote-printer-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_HELP_CARDS: &str = "hide-help-cards"; pub const OPTION_DEFAULT_CONNECT_PASSWORD: &str = "default-connect-password"; @@ -2588,6 +2592,8 @@ pub mod keys { OPTION_ALLOW_REMOTE_CM_MODIFICATION, OPTION_ALLOW_AUTO_RECORD_OUTGOING, OPTION_VIDEO_SAVE_DIRECTORY, + OPTION_ENABLE_UDP_PUNCH, + OPTION_ENABLE_IPV6_PUNCH, ]; // DEFAULT_SETTINGS, OVERWRITE_SETTINGS pub const KEYS_SETTINGS: &[&str] = &[ @@ -2661,6 +2667,7 @@ pub mod keys { ]; } + pub fn common_load< T: serde::Serialize + serde::de::DeserializeOwned + Default + std::fmt::Debug, >(