merge bitcoin#27863: do not break when addr is not from a distinct network group

This commit is contained in:
Kittywhiskers Van Gogh 2023-06-10 08:05:10 -03:00
parent 1adb9a232c
commit 19e7bf64c8
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -3303,7 +3303,7 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect, CDe
// 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 address, restart // if we selected an invalid address, restart