mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-27 18:41:15 +08:00
12 lines
377 B
Diff
12 lines
377 B
Diff
--- a/src/common.rs
|
|
+++ b/src/common.rs
|
|
@@ -105,7 +105,7 @@ pub fn now() -> u64 {
|
|
}
|
|
|
|
pub fn gen_sk(wait: u64) -> (String, Option<sign::SecretKey>) {
|
|
- let sk_file = "id_ed25519";
|
|
+ let sk_file = "/etc/rustdesk-server/id_ed25519";
|
|
if wait > 0 && !std::path::Path::new(sk_file).exists() {
|
|
std::thread::sleep(std::time::Duration::from_millis(wait));
|
|
}
|