add -timeout default as constant and use them

- update help message text
- simplify code in init to check for -timeout
This commit is contained in:
Philip Kaufmann
2014-09-25 09:01:54 +02:00
parent 5505a1b13f
commit de10efd154
3 changed files with 8 additions and 8 deletions

View File

@@ -40,7 +40,7 @@ using namespace std;
static proxyType proxyInfo[NET_MAX];
static CService nameProxy;
static CCriticalSection cs_proxyInfos;
int nConnectTimeout = 5000;
int nConnectTimeout = DEFAULT_CONNECT_TIMEOUT;
bool fNameLookup = false;
static const unsigned char pchIPv4[12] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff };