add some missing keys

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages 2025-07-09 11:05:57 +08:00
parent f850a167ac
commit 0aae3499f6

View File

@ -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,
>(