diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-06-17 17:07:08 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-06-17 17:07:08 -0700 |
commit | 432d28d3bb02de3f5bafe419ab8e1f89a0a3d0ba (patch) | |
tree | 49092e9c6280c950c920ae94395781d28e019b2f /src | |
parent | a54d2118be9be982d4ec40dd6c77e5a02708e4b0 (diff) | |
parent | 3bbb49de55dfae8c608366ceaf79f5bf3c1cc672 (diff) |
Merge pull request #1477 from gmaxwell/master
Fix inverted logic for !Discover/!UPNP when !Listen.
Diffstat (limited to 'src')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 08b594f56c..4ab7bdc429 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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); |