aboutsummaryrefslogtreecommitdiff
path: root/src/net.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/net.cpp
parentf0f4904becbf2514c7cdc53a8942faf3982dda19 (diff)
parent53a088154ce4e1fc483afa120a9063811dd0e7ea (diff)
Merge pull request #4247 from Diapolo/listen
rename fNoListen to fListen and move to net
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index b0e6699ed2..479f77c469 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -45,6 +45,7 @@ static const int MAX_OUTBOUND_CONNECTIONS = 8;
// Global state variables
//
bool fDiscover = true;
+bool fListen = true;
uint64_t nLocalServices = NODE_NETWORK;
CCriticalSection cs_mapLocalHost;
map<CNetAddr, LocalServiceInfo> mapLocalHost;
@@ -96,7 +97,7 @@ unsigned short GetListenPort()
// find 'best' local address for a particular peer
bool GetLocal(CService& addr, const CNetAddr *paddrPeer)
{
- if (fNoListen)
+ if (!fListen)
return false;
int nBestScore = -1;