aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <[email protected]>2014-05-29 12:33:17 +0200
committerRoss Nicoll <[email protected]>2015-06-27 13:44:14 +0000
commitf347f7ebb302aec549d27422e83cda55a35bc62c (patch)
tree4e29e7df64e91a33a424fa948b8f30520d441112 /src/main.cpp
parentUpdate release type and copyright year (diff)
downloadarchived-discoin-f347f7ebb302aec549d27422e83cda55a35bc62c.tar.xz
archived-discoin-f347f7ebb302aec549d27422e83cda55a35bc62c.zip
rename fNoListen to fListen and move to net
- better code readability and it belongs to net - this is a prerequisite for a pull to add -listen to the GUI
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 ed237a73c..409b2f63d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3822,7 +3822,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())
@@ -4611,7 +4611,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())