mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
Merge pull request #6639
58ef0ffdoc: update docs for Tor listening (Wladimir J. van der Laan)68ccdc4doc: Mention Tor listening in release notes (Wladimir J. van der Laan)09c1ae1torcontrol improvements and fixes (Wladimir J. van der Laan)2f796e5Better error message if Tor version too old (Peter Todd)8f4e67fnet: Automatically create hidden service, listen on Tor (Wladimir J. van der Laan)
This commit is contained in:
@@ -4059,9 +4059,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
||||
CAddress addr = GetLocalAddress(&pfrom->addr);
|
||||
if (addr.IsRoutable())
|
||||
{
|
||||
LogPrintf("ProcessMessages: advertizing address %s\n", addr.ToString());
|
||||
pfrom->PushAddress(addr);
|
||||
} else if (IsPeerAddrLocalGood(pfrom)) {
|
||||
addr.SetIP(pfrom->addrLocal);
|
||||
LogPrintf("ProcessMessages: advertizing address %s\n", addr.ToString());
|
||||
pfrom->PushAddress(addr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user