|
|
|
@ -3562,7 +3562,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
@@ -3562,7 +3562,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
|
|
|
|
|
if (!pfrom->fInbound) |
|
|
|
|
{ |
|
|
|
|
// Advertise our address
|
|
|
|
|
if (!fNoListen && !IsInitialBlockDownload()) |
|
|
|
|
if (fListen && !IsInitialBlockDownload()) |
|
|
|
|
{ |
|
|
|
|
CAddress addr = GetLocalAddress(&pfrom->addr); |
|
|
|
|
if (addr.IsRoutable()) |
|
|
|
@ -4330,7 +4330,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
@@ -4330,7 +4330,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
|
|
|
|
|
pnode->setAddrKnown.clear(); |
|
|
|
|
|
|
|
|
|
// Rebroadcast our address
|
|
|
|
|
if (!fNoListen) |
|
|
|
|
if (fListen) |
|
|
|
|
{ |
|
|
|
|
CAddress addr = GetLocalAddress(&pnode->addr); |
|
|
|
|
if (addr.IsRoutable()) |
|
|
|
|