aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2023-06-10 08:05:10 -0300
committerbrunoerg <brunoely.gc@gmail.com>2023-06-12 13:58:45 -0300
commit5fa4055452861ca1700008e1761815e88b29fae7 (patch)
treeaeeddd62fb94d1ce438f253189537378dc541fcd
parent6f5f37eefd425faabd9a97a3c3028395c34f08c4 (diff)
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`).
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 282c8fb741..46b67386ab 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -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
if (!fFeeler && outbound_ipv46_peer_netgroups.count(m_netgroupman.GetGroup(addr))) {
- break;
+ continue;
}
// if we selected an invalid or local address, restart