mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-15 06:07:23 +08:00
Compare commits
1 Commits
remove_loc
...
releases/v
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33ff9554cd |
@@ -86,7 +86,8 @@ impl PeerRpcManagerTransport for RpcTransport {
|
|||||||
.get_route_peer_info(dst_peer_id)
|
.get_route_peer_info(dst_peer_id)
|
||||||
.await
|
.await
|
||||||
.and_then(|x| x.feature_flag.map(|x| x.is_public_server))
|
.and_then(|x| x.feature_flag.map(|x| x.is_public_server))
|
||||||
.unwrap_or(true);
|
// if dst is directly connected, it's must not public server
|
||||||
|
.unwrap_or(!peers.has_peer(dst_peer_id));
|
||||||
if !is_dst_peer_public_server {
|
if !is_dst_peer_public_server {
|
||||||
self.encryptor
|
self.encryptor
|
||||||
.encrypt(&mut msg)
|
.encrypt(&mut msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user