mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
win_fix_multi_tab: build linux
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
22
src/ui.rs
22
src/ui.rs
@@ -514,17 +514,17 @@ impl UI {
|
||||
}
|
||||
|
||||
fn get_lan_peers(&self) -> String {
|
||||
let peers = get_lan_peers()
|
||||
.into_iter()
|
||||
.map(|mut peer| {
|
||||
(
|
||||
peer.remove("id").unwrap_or_default(),
|
||||
peer.remove("username").unwrap_or_default(),
|
||||
peer.remove("hostname").unwrap_or_default(),
|
||||
peer.remove("platform").unwrap_or_default(),
|
||||
)
|
||||
})
|
||||
.collect::<Vec<(String, String, String, String)>>();
|
||||
// let peers = get_lan_peers()
|
||||
// .into_iter()
|
||||
// .map(|mut peer| {
|
||||
// (
|
||||
// peer.remove("id").unwrap_or_default(),
|
||||
// peer.remove("username").unwrap_or_default(),
|
||||
// peer.remove("hostname").unwrap_or_default(),
|
||||
// peer.remove("platform").unwrap_or_default(),
|
||||
// )
|
||||
// })
|
||||
// .collect::<Vec<(String, String, String, String)>>();
|
||||
serde_json::to_string(&get_lan_peers()).unwrap_or_default()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user