feat: allow-only-conn-window-open https://github.com/rustdesk/rustdesk/discussions/7033
This commit is contained in:
parent
cf8386aa50
commit
07eca00bd5
44 changed files with 53 additions and 0 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue