mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 02:09:06 +00:00
tune command line args
This commit is contained in:
@@ -103,7 +103,7 @@ impl PeerMap {
|
||||
return Some(dst_peer_id);
|
||||
}
|
||||
|
||||
if self.has_peer(dst_peer_id) {
|
||||
if self.has_peer(dst_peer_id) && matches!(policy, NextHopPolicy::LeastHop) {
|
||||
return Some(dst_peer_id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user