mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-02-17 22:11:30 +08:00
fix check_process on mac since normal user can not get system's
process's command line arguments
This commit is contained in:
@@ -958,7 +958,7 @@ impl Connection {
|
||||
}
|
||||
#[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) {
|
||||
if !crate::check_process("", !crate::platform::is_root()) {
|
||||
self.send_login_error("The main window is not open").await;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user