op-packages/rustdesk-server/patches/002-update-sk_file-path.patch
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

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));
}