mirror of
https://github.com/rustdesk/hbb_common.git
synced 2025-07-01 15:36:53 +00:00
Update config.rs
This commit is contained in:
parent
0e279c1a8f
commit
fa160b2864
@ -951,6 +951,13 @@ impl Config {
|
||||
config.key_pair
|
||||
}
|
||||
|
||||
pub fn no_register_device() -> bool {
|
||||
BUILTIN_SETTINGS.read().unwrap()
|
||||
.get(keys::OPTION_REGISTER_DEVICE)
|
||||
.map(|v| v == "N")
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
pub fn get_id() -> String {
|
||||
let mut id = CONFIG.read().unwrap().id.clone();
|
||||
if id.is_empty() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user