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.
2 parents c79e52a + 9e1f468 commit c1a5227Copy full SHA for c1a5227
src/init.cpp
@@ -859,7 +859,9 @@ bool AppInitParameterInteraction()
859
}
860
861
// Make sure enough file descriptors are available
862
- int nBind = std::max((int)mapArgs.count("-bind") + (int)mapArgs.count("-whitebind"), 1);
+ int nBind = std::max(
863
+ (mapMultiArgs.count("-bind") ? mapMultiArgs.at("-bind").size() : 0) +
864
+ (mapMultiArgs.count("-whitebind") ? mapMultiArgs.at("-whitebind").size() : 0), size_t(1));
865
nUserMaxConnections = GetArg("-maxconnections", DEFAULT_MAX_PEER_CONNECTIONS);
866
nMaxConnections = std::max(nUserMaxConnections, 0);
867
0 commit comments