Skip to content

Commit

Permalink
[Net] Relay actual peers instead of localhost on getaddr
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquid369 committed Apr 17, 2020
1 parent 4245a37 commit f09f689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,11 @@ class CNode
// Known checking here is only to save space from duplicates.
// SendMessages will filter it again for knowns that were added
// after addresses were pushed.
if (addr.IsValid() && !setAddrKnown.count(addr)) {
if (_addr.IsValid() && !setAddrKnown.count(_addr)) {
if (vAddrToSend.size() >= MAX_ADDR_TO_SEND) {
vAddrToSend[insecure_rand.randrange(vAddrToSend.size())] = _addr;
} else {
vAddrToSend.push_back(addr);
vAddrToSend.push_back(_addr);
}
}
}
Expand Down

0 comments on commit f09f689

Please sign in to comment.