mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Fix calculation of number of bound sockets to use
This commit is contained in:
parent
3bf06e9bac
commit
9e1f46821d
@ -859,7 +859,9 @@ bool AppInitParameterInteraction()
|
||||
}
|
||||
|
||||
// Make sure enough file descriptors are available
|
||||
int nBind = std::max((int)mapArgs.count("-bind") + (int)mapArgs.count("-whitebind"), 1);
|
||||
int nBind = std::max(
|
||||
(mapMultiArgs.count("-bind") ? mapMultiArgs.at("-bind").size() : 0) +
|
||||
(mapMultiArgs.count("-whitebind") ? mapMultiArgs.at("-whitebind").size() : 0), size_t(1));
|
||||
nUserMaxConnections = GetArg("-maxconnections", DEFAULT_MAX_PEER_CONNECTIONS);
|
||||
nMaxConnections = std::max(nUserMaxConnections, 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user