mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-18 07:43:01 +08:00
fix on last refactory
This commit is contained in:
parent
040267e7f2
commit
1a4f0507a2
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user