Browse Source

Merge #8740: net: No longer send local address in addrMe

d9c99c3 net: No longer send local address in addrMe (Wladimir J. van der Laan)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
239e8ce958
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/net.cpp

2
src/net.cpp

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

Loading…
Cancel
Save