mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 10:19:26 +02:00
net: do not break
when addr
is not from a distinct network group
When the address is from a network group we already caught, do a `continue` and try to find another address until conditions are met or we reach the limit (`nTries`).
This commit is contained in:
@ -1853,7 +1853,7 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect)
|
|||||||
|
|
||||||
// Require outbound IPv4/IPv6 connections, other than feelers, to be to distinct network groups
|
// Require outbound IPv4/IPv6 connections, other than feelers, to be to distinct network groups
|
||||||
if (!fFeeler && outbound_ipv46_peer_netgroups.count(m_netgroupman.GetGroup(addr))) {
|
if (!fFeeler && outbound_ipv46_peer_netgroups.count(m_netgroupman.GetGroup(addr))) {
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we selected an invalid or local address, restart
|
// if we selected an invalid or local address, restart
|
||||||
|
Reference in New Issue
Block a user