We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 396c405 commit 28d0f22Copy full SHA for 28d0f22
src/init.cpp
@@ -854,7 +854,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
854
}
855
856
// Make sure enough file descriptors are available
857
- int nBind = std::max((int)mapArgs.count("-bind") + (int)mapArgs.count("-whitebind"), 1);
+ int nBind = std::max(
858
+ (mapMultiArgs.count("-bind") ? mapMultiArgs.at("-bind").size() : 0) +
859
+ (mapMultiArgs.count("-whitebind") ? mapMultiArgs.at("-whitebind").size() : 0), size_t(1));
860
int nUserMaxConnections = GetArg("-maxconnections", DEFAULT_MAX_PEER_CONNECTIONS);
861
nMaxConnections = std::max(nUserMaxConnections, 0);
862
0 commit comments