mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-14 06:45:12 +00:00
tokio1, windows not test yet
This commit is contained in:
1 parent
25a83f6b4a
commit
dc3fcda2c9
23 files changed
+169
-154
No files matched your search
@@ -548,7 +548,7 @@ impl Config {
|
||||
// to-do: how about if one ip register a lot of ids?
|
||||
let id = Self::get_id();
|
||||
let mut rng = rand::thread_rng();
|
||||
let new_id = rng.gen_range(1_000_000_000, 2_000_000_000).to_string();
|
||||
let new_id = rng.gen_range(1_000_000_000..2_000_000_000).to_string();
|
||||
Config::set_id(&new_id);
|
||||
log::info!("id updated from {} to {}", id, new_id);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user