Avoid advertising the node's address when it is not listening or IsInitialBlockDownlo...
[novacoin.git] / src / net.cpp
index 66c9218..a7eaaac 100644 (file)
@@ -141,7 +141,7 @@ bool GetMyExternalIP(CNetAddr& ipRet)
     const char* pszGet;
     const char* pszKeyword;
 
-    if (fUseProxy)
+    if (fNoListen||fUseProxy)
         return false;
 
     for (int nLookup = 0; nLookup <= 1; nLookup++)