mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
fix sysinfo update when id change, and add debug info for pk change
This commit is contained in:
@@ -867,6 +867,7 @@ impl Config {
|
||||
}
|
||||
let mut config = Config::load_::<Config>("");
|
||||
if config.key_pair.0.is_empty() {
|
||||
log::info!("Generated new keypair for id: {}", config.id);
|
||||
let (pk, sk) = sign::gen_keypair();
|
||||
let key_pair = (sk.0.to_vec(), pk.0.into());
|
||||
config.key_pair = key_pair.clone();
|
||||
|
||||
Reference in New Issue
Block a user