This commit is contained in:
rustdesk
2024-04-09 18:34:44 +08:00
parent cf8386aa50
commit 07eca00bd5
44 changed files with 53 additions and 0 deletions

View File

@@ -956,6 +956,13 @@ impl Connection {
if !self.check_whitelist(&addr).await {
return false;
}
#[cfg(not(any(target_os = "android", target_os = "ios")))]
if crate::is_server() && Config::get_option("allow-only-conn-window-open") == "Y" {
if crate::check_process("", false) {
self.send_login_error("The main window is not open").await;
return false;
}
}
self.ip = addr.ip().to_string();
let mut msg_out = Message::new();
msg_out.set_hash(self.hash.clone());