This commit is contained in:
rustdesk
2023-02-08 16:00:12 +08:00
parent 33f54ba5aa
commit 7e307a5a1c
11 changed files with 19 additions and 21 deletions

View File

@@ -134,7 +134,7 @@ pub fn gen_sk(wait: u64) -> (String, Option<sign::SecretKey>) {
}
(pk, sk) = gen_func();
}
let pub_file = format!("{}.pub", sk_file);
let pub_file = format!("{sk_file}.pub");
if let Ok(mut f) = std::fs::File::create(&pub_file) {
f.write_all(pk.as_bytes()).ok();
if let Ok(mut f) = std::fs::File::create(sk_file) {