Fix nonsensical -nobind and -nowhitebind behavior

Treat specifying -nobind and -nowhitebind the same as not specifying -bind and
-whitebind values instead of causing them to soft-set -listen=1.
This commit is contained in:
Ryan Ofsky 2019-12-19 18:00:04 -05:00
parent 5453e66fd9
commit 40c4899bc2

View File

@ -716,11 +716,11 @@ void InitParameterInteraction(ArgsManager& args)
{
// when specifying an explicit binding address, you want to listen on it
// even when -connect or -proxy is specified
if (args.IsArgSet("-bind")) {
if (!args.GetArgs("-bind").empty()) {
if (args.SoftSetBoolArg("-listen", true))
LogInfo("parameter interaction: -bind set -> setting -listen=1\n");
}
if (args.IsArgSet("-whitebind")) {
if (!args.GetArgs("-whitebind").empty()) {
if (args.SoftSetBoolArg("-listen", true))
LogInfo("parameter interaction: -whitebind set -> setting -listen=1\n");
}