mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-10 12:41:28 +03:00
Revert "remove peers platform filter for failed connections"
This reverts commit b5cf959206.
This commit is contained in:
@@ -1031,8 +1031,12 @@ impl PeerConfig {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let c = PeerConfig::load(&id_decoded_string);
|
let c = PeerConfig::load(&id_decoded_string);
|
||||||
|
if c.info.platform.is_empty() {
|
||||||
|
fs::remove_file(p).ok();
|
||||||
|
}
|
||||||
(id_decoded_string, t, c)
|
(id_decoded_string, t, c)
|
||||||
})
|
})
|
||||||
|
.filter(|p| !p.2.info.platform.is_empty())
|
||||||
.collect();
|
.collect();
|
||||||
peers.sort_unstable_by(|a, b| b.1.cmp(&a.1));
|
peers.sort_unstable_by(|a, b| b.1.cmp(&a.1));
|
||||||
return peers;
|
return peers;
|
||||||
|
|||||||
Reference in New Issue
Block a user