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:
1 parent
5453e66fd9
commit
40c4899bc2
1 file changed
+2
-2
+2
-2
@@ -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");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user