aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@bitpay.com>2014-06-04 15:00:38 -0400
committerJeff Garzik <jgarzik@bitpay.com>2014-06-04 15:00:38 -0400
commitc79897af319e01d0c84f970206747e320e246418 (patch)
tree6ce65bc71e46c1ef23c339d83be9c42e32514ade /src/main.cpp
parentf0f4904becbf2514c7cdc53a8942faf3982dda19 (diff)
parent53a088154ce4e1fc483afa120a9063811dd0e7ea (diff)
downloadbitcoin-c79897af319e01d0c84f970206747e320e246418.tar.xz
Merge pull request #4247 from Diapolo/listen
rename fNoListen to fListen and move to net
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b1258839d0..fa47bf7f08 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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)
pnode->setAddrKnown.clear();
// Rebroadcast our address
- if (!fNoListen)
+ if (fListen)
{
CAddress addr = GetLocalAddress(&pnode->addr);
if (addr.IsRoutable())