Browse Source

Merge pull request #1477 from gmaxwell/master

Fix inverted logic for !Discover/!UPNP when !Listen.
tags/v0.15.1
Pieter Wuille 9 years ago
parent
commit
432d28d3bb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/init.cpp

+ 1
- 1
src/init.cpp View File

@@ -344,7 +344,7 @@ bool AppInit2()
SoftSetBoolArg("-listen", false);
}

if (GetBoolArg("-listen", true)) {
if (!GetBoolArg("-listen", true)) {
// do not map ports or try to retrieve public IP when not listening (pointless)
SoftSetBoolArg("-upnp", false);
SoftSetBoolArg("-discover", false);

Loading…
Cancel
Save