mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-26 17:52:13 +01:00
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:
parent
5453e66fd9
commit
40c4899bc2
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user