mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
Allow to peers behind NAT to get up to preferred_max connections (#2543)
Allow to peers behind NAT to get up to preffered_max connections If peer has only outbound connections it's mot likely behind NAT and we should not stop it from getting more outbound connections
This commit is contained in:
parent
eed81388d5
commit
224a315dd1
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ fn listen_for_addrs(
|
|||
let addrs: Vec<PeerAddr> = rx.try_iter().collect();
|
||||
|
||||
// If we have a healthy number of outbound peers then we are done here.
|
||||
if peers.healthy_peers_mix() {
|
||||
if peers.peer_count() > peers.peer_outbound_count() && peers.healthy_peers_mix() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue