Skip to content

Commit 54ba330

Browse files
committed
Merge bitcoin/bitcoin#27863: net: do not break when addr is not from a distinct network group
5fa4055 net: do not `break` when `addr` is not from a distinct network group (brunoerg) Pull request description: 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`). ACKs for top commit: amitiuttarwar: utACK 5fa4055 achow101: ACK 5fa4055 mzumsande: utACK 5fa4055 Tree-SHA512: 225bb6df450b46960db934983c583e862d1a17bacfc46d3657a0eb25a0204e106e8cd18de36764e210e0a92489ab4b5773437e4a641c9b455bde74ff8a041787
2 parents 561915f + 5fa4055 commit 54ba330

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
@@ -1844,7 +1844,7 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect)
18441844

18451845
// Require outbound IPv4/IPv6 connections, other than feelers, to be to distinct network groups
18461846
if (!fFeeler && outbound_ipv46_peer_netgroups.count(m_netgroupman.GetGroup(addr))) {
1847-
break;
1847+
continue;
18481848
}
18491849

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

0 commit comments

Comments
 (0)