mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-05 00:36:14 +00:00
fix security problem caused server hang and unexpected input behavior at pre-login window when macOS version on Big Sur or above
This commit is contained in:
1 parent
089acaa6e7
commit
29f15aabed
2 files changed
+7
-5
No files matched your search
@@ -904,12 +904,10 @@ async fn start_ipc(
|
||||
mut rx_to_cm: mpsc::UnboundedReceiver<ipc::Data>,
|
||||
tx_from_cm: mpsc::UnboundedSender<ipc::Data>,
|
||||
) -> ResultType<()> {
|
||||
loop {
|
||||
if !crate::platform::is_prelogin() {
|
||||
break;
|
||||
}
|
||||
sleep(1.).await;
|
||||
if crate::platform::is_prelogin() {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let mut stream = None;
|
||||
if let Ok(s) = crate::ipc::connect(1000, "_cm").await {
|
||||
stream = Some(s);
|
||||
|
||||
Reference in new issue
Block a user