aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2014-06-04 15:00:38 -0400
committerJeff Garzik <[email protected]>2014-06-04 15:00:38 -0400
commitc79897af319e01d0c84f970206747e320e246418 (patch)
tree6ce65bc71e46c1ef23c339d83be9c42e32514ade /src/main.cpp
parentMerge pull request #4258 (diff)
parentrename fNoListen to fListen and move to net (diff)
downloaddiscoin-c79897af319e01d0c84f970206747e320e246418.tar.xz
discoin-c79897af319e01d0c84f970206747e320e246418.zip
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 b1258839d..fa47bf7f0 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())