diff options
| author | Gregory Maxwell <[email protected]> | 2012-06-17 12:12:56 -0400 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2012-06-17 12:13:34 -0400 |
| commit | 3bbb49de55dfae8c608366ceaf79f5bf3c1cc672 (patch) | |
| tree | 49bab057fe11d34349d770cf3271339583669f20 /src | |
| parent | Document how to build/run unit tests (diff) | |
| download | discoin-3bbb49de55dfae8c608366ceaf79f5bf3c1cc672.tar.xz discoin-3bbb49de55dfae8c608366ceaf79f5bf3c1cc672.zip | |
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 08b594f56..4ab7bdc42 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); |