fix on last refactory

This commit is contained in:
rustdesk 2022-07-30 09:29:01 +08:00
parent 040267e7f2
commit 1a4f0507a2

View File

@ -593,7 +593,7 @@ impl Config {
if let Some(p) = lock.as_ref() { if let Some(p) = lock.as_ref() {
return p.clone(); return p.clone();
} }
let mut config = Config::load(); let mut config = Config::load_::<Config>("");
if config.key_pair.0.is_empty() { if config.key_pair.0.is_empty() {
let (pk, sk) = sign::gen_keypair(); let (pk, sk) = sign::gen_keypair();
let key_pair = (sk.0.to_vec(), pk.0.into()); let key_pair = (sk.0.to_vec(), pk.0.into());