|
|
|
@ -314,7 +314,7 @@ std::string HelpMessage(HelpMessageMode mode)
@@ -314,7 +314,7 @@ std::string HelpMessage(HelpMessageMode mode)
|
|
|
|
|
strUsage += HelpMessageOpt("-externalip=<ip>", _("Specify your own public address")); |
|
|
|
|
strUsage += HelpMessageOpt("-forcednsseed", strprintf(_("Always query for peer addresses via DNS lookup (default: %u)"), 0)); |
|
|
|
|
strUsage += HelpMessageOpt("-listen", _("Accept connections from outside (default: 1 if no -proxy or -connect)")); |
|
|
|
|
strUsage += HelpMessageOpt("-maxconnections=<n>", strprintf(_("Maintain at most <n> connections to peers (default: %u)"), 125)); |
|
|
|
|
strUsage += HelpMessageOpt("-maxconnections=<n>", strprintf(_("Maintain at most <n> connections to peers (default: %u)"), DEFAULT_MAX_PEER_CONNECTIONS)); |
|
|
|
|
strUsage += HelpMessageOpt("-maxreceivebuffer=<n>", strprintf(_("Maximum per-connection receive buffer, <n>*1000 bytes (default: %u)"), 5000)); |
|
|
|
|
strUsage += HelpMessageOpt("-maxsendbuffer=<n>", strprintf(_("Maximum per-connection send buffer, <n>*1000 bytes (default: %u)"), 1000)); |
|
|
|
|
strUsage += HelpMessageOpt("-onion=<ip:port>", strprintf(_("Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: %s)"), "-proxy")); |
|
|
|
@ -752,7 +752,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
@@ -752,7 +752,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|
|
|
|
|
|
|
|
|
// Make sure enough file descriptors are available
|
|
|
|
|
int nBind = std::max((int)mapArgs.count("-bind") + (int)mapArgs.count("-whitebind"), 1); |
|
|
|
|
int nUserMaxConnections = GetArg("-maxconnections", 125); |
|
|
|
|
int nUserMaxConnections = GetArg("-maxconnections", DEFAULT_MAX_PEER_CONNECTIONS); |
|
|
|
|
nMaxConnections = std::max(nUserMaxConnections, 0); |
|
|
|
|
int nUserWhiteConnections = GetArg("-whiteconnections", 0); |
|
|
|
|
nWhiteConnections = std::max(nUserWhiteConnections, 0); |
|
|
|
|