mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
feat: allow-only-conn-window-open https://github.com/rustdesk/rustdesk/discussions/7033
This commit is contained in:
1 parent
cf8386aa50
commit
07eca00bd5
44 files changed
+53
No files matched your search
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user