Skip to content

Commit 239e8ce

Browse files
committed
Merge #8740: net: No longer send local address in addrMe
d9c99c3 net: No longer send local address in addrMe (Wladimir J. van der Laan)
2 parents 1e5799c + d9c99c3 commit 239e8ce

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
@@ -448,7 +448,7 @@ void CNode::PushVersion()
448448
{
449449
int64_t nTime = (fInbound ? GetAdjustedTime() : GetTime());
450450
CAddress addrYou = (addr.IsRoutable() && !IsProxy(addr) ? addr : CAddress(CService(), addr.nServices));
451-
CAddress addrMe = GetLocalAddress(&addr, nLocalServices);
451+
CAddress addrMe = CAddress(CService(), nLocalServices);
452452
if (fLogIPs)
453453
LogPrint("net", "send version message: version %d, blocks=%d, us=%s, them=%s, peer=%d\n", PROTOCOL_VERSION, nMyStartingHeight, addrMe.ToString(), addrYou.ToString(), id);
454454
else

0 commit comments

Comments
 (0)