Skip to content

Commit 5fa4055

Browse files
committed
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`).
1 parent 6f5f37e commit 5fa4055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,7 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect)
18531853

18541854
// Require outbound IPv4/IPv6 connections, other than feelers, to be to distinct network groups
18551855
if (!fFeeler && outbound_ipv46_peer_netgroups.count(m_netgroupman.GetGroup(addr))) {
1856-
break;
1856+
continue;
18571857
}
18581858

18591859
// if we selected an invalid or local address, restart

0 commit comments

Comments
 (0)