Merge pull request #4247 from Diapolo/listen

rename fNoListen to fListen and move to net
This commit is contained in:
Jeff Garzik
2014-06-04 15:00:38 -04:00
6 changed files with 7 additions and 7 deletions

View File

@@ -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;