From 40c4899bc209921fb4bde02840359c3253663766 Mon Sep 17 00:00:00 2001 From: Ryan Ofsky Date: Thu, 19 Dec 2019 18:00:04 -0500 Subject: [PATCH] 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. --- src/init.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index d46318fd45e..5d37a349c82 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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"); }