diff options
| author | Philip Kaufmann <[email protected]> | 2014-05-29 12:33:17 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2014-05-29 14:01:39 +0200 |
| commit | 53a088154ce4e1fc483afa120a9063811dd0e7ea (patch) | |
| tree | 56748b1748b2bb766c00f7b3f68daf50620bc806 /src/main.cpp | |
| parent | Merge pull request #4132 (diff) | |
| download | discoin-53a088154ce4e1fc483afa120a9063811dd0e7ea.tar.xz discoin-53a088154ce4e1fc483afa120a9063811dd0e7ea.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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 18c00d90a..5f61a1378 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3550,7 +3550,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()) @@ -4318,7 +4318,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()) |