This commit is contained in:
rustdesk
2023-02-08 16:45:30 +08:00
parent 7e307a5a1c
commit e2f4962ba8
9 changed files with 93 additions and 89 deletions

View File

@@ -525,7 +525,7 @@ impl Config {
let mut path: PathBuf = format!("/tmp/{}", *APP_NAME.read().unwrap()).into();
fs::create_dir(&path).ok();
fs::set_permissions(&path, fs::Permissions::from_mode(0o0777)).ok();
path.push(format!("ipc{}", postfix));
path.push(format!("ipc{postfix}"));
path.to_str().unwrap_or("").to_owned()
}
}
@@ -562,7 +562,7 @@ impl Config {
.unwrap_or_default();
}
if !rendezvous_server.contains(':') {
rendezvous_server = format!("{}:{}", rendezvous_server, RENDEZVOUS_PORT);
rendezvous_server = format!("{rendezvous_server}:{RENDEZVOUS_PORT}");
}
rendezvous_server
}