mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge 58b559fab0 into merged_master (Bitcoin PR bitcoin/bitcoin#20769)
This commit is contained in:
commit
818dfb4863
1 changed files with 5 additions and 0 deletions
|
|
@ -905,6 +905,11 @@ bool AppInitParameterInteraction(const ArgsManager& args)
|
|||
return InitError(Untranslated("Cannot set -bind or -whitebind together with -listen=0"));
|
||||
}
|
||||
|
||||
// if listen=0, then disallow listenonion=1
|
||||
if (!args.GetBoolArg("-listen", DEFAULT_LISTEN) && args.GetBoolArg("-listenonion", DEFAULT_LISTEN_ONION)) {
|
||||
return InitError(Untranslated("Cannot set -listen=0 together with -listenonion=1"));
|
||||
}
|
||||
|
||||
// Make sure enough file descriptors are available
|
||||
int nBind = std::max(nUserBind, size_t(1));
|
||||
nUserMaxConnections = args.GetArg("-maxconnections", DEFAULT_MAX_PEER_CONNECTIONS);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue