mirror of
https://github.com/rustdesk/hbb_common.git
synced 2025-08-16 00:25:39 +00:00
Merge pull request #289 from 21pages/add_missing_keys
add some missing keys
This commit is contained in:
commit
25e761f467
@ -955,7 +955,9 @@ impl Config {
|
||||
}
|
||||
|
||||
pub fn no_register_device() -> bool {
|
||||
BUILTIN_SETTINGS.read().unwrap()
|
||||
BUILTIN_SETTINGS
|
||||
.read()
|
||||
.unwrap()
|
||||
.get(keys::OPTION_REGISTER_DEVICE)
|
||||
.map(|v| v == "N")
|
||||
.unwrap_or(false)
|
||||
@ -2465,6 +2467,7 @@ pub mod keys {
|
||||
pub const OPTION_ENABLE_HWCODEC: &str = "enable-hwcodec";
|
||||
pub const OPTION_APPROVE_MODE: &str = "approve-mode";
|
||||
pub const OPTION_VERIFICATION_METHOD: &str = "verification-method";
|
||||
pub const OPTION_TEMPORARY_PASSWORD_LENGTH: &str = "temporary-password-length";
|
||||
pub const OPTION_CUSTOM_RENDEZVOUS_SERVER: &str = "custom-rendezvous-server";
|
||||
pub const OPTION_API_SERVER: &str = "api-server";
|
||||
pub const OPTION_KEY: &str = "key";
|
||||
@ -2492,7 +2495,7 @@ 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";
|
||||
@ -2638,6 +2641,7 @@ pub mod keys {
|
||||
OPTION_ENABLE_HWCODEC,
|
||||
OPTION_APPROVE_MODE,
|
||||
OPTION_VERIFICATION_METHOD,
|
||||
OPTION_TEMPORARY_PASSWORD_LENGTH,
|
||||
OPTION_PROXY_URL,
|
||||
OPTION_PROXY_USERNAME,
|
||||
OPTION_PROXY_PASSWORD,
|
||||
@ -2680,7 +2684,6 @@ pub mod keys {
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
pub fn common_load<
|
||||
T: serde::Serialize + serde::de::DeserializeOwned + Default + std::fmt::Debug,
|
||||
>(
|
||||
|
Loading…
x
Reference in New Issue
Block a user