Skip to content

Commit 40c4899

Browse files
committed
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.
1 parent 5453e66 commit 40c4899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/init.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,11 +716,11 @@ void InitParameterInteraction(ArgsManager& args)
716716
{
717717
// when specifying an explicit binding address, you want to listen on it
718718
// even when -connect or -proxy is specified
719-
if (args.IsArgSet("-bind")) {
719+
if (!args.GetArgs("-bind").empty()) {
720720
if (args.SoftSetBoolArg("-listen", true))
721721
LogInfo("parameter interaction: -bind set -> setting -listen=1\n");
722722
}
723-
if (args.IsArgSet("-whitebind")) {
723+
if (!args.GetArgs("-whitebind").empty()) {
724724
if (args.SoftSetBoolArg("-listen", true))
725725
LogInfo("parameter interaction: -whitebind set -> setting -listen=1\n");
726726
}

0 commit comments

Comments
 (0)