mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-25 22:21:01 +03:00
refact: android ios, lan discovery (#9207)
* refact: android ios, lan discovery Signed-off-by: fufesou <linlong1266@gmail.com> * fix: build and runtime error Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -76,8 +76,11 @@ impl RendezvousMediator {
|
||||
tokio::spawn(async move {
|
||||
direct_server(server_cloned).await;
|
||||
});
|
||||
#[cfg(target_os = "android")]
|
||||
let start_lan_listening = true;
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
if crate::platform::is_installed() {
|
||||
let start_lan_listening = crate::platform::is_installed();
|
||||
if start_lan_listening {
|
||||
std::thread::spawn(move || {
|
||||
allow_err!(super::lan::start_listening());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user