mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-06 08:40:12 +00:00
new lan discovery https://github.com/rustdesk/rustdesk/issues/261
This commit is contained in:
1 parent
4071f803f7
commit
8ea5d80f01
8 files changed
+177
-25
No files matched your search
@@ -609,6 +609,16 @@ impl UI {
|
||||
crate::platform::windows::create_shortcut(&_id).ok();
|
||||
}
|
||||
|
||||
fn discover(&self) {
|
||||
std::thread::spawn(move || {
|
||||
allow_err!(crate::rendezvous_mediator::discover());
|
||||
});
|
||||
}
|
||||
|
||||
fn get_lan_peers(&self) -> String {
|
||||
config::LanPeers::load().peers
|
||||
}
|
||||
|
||||
fn open_url(&self, url: String) {
|
||||
#[cfg(windows)]
|
||||
let p = "explorer";
|
||||
@@ -683,6 +693,8 @@ impl sciter::EventHandler for UI {
|
||||
fn get_software_ext();
|
||||
fn open_url(String);
|
||||
fn create_shortcut(String);
|
||||
fn discover();
|
||||
fn get_lan_peers();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user