Fix inverted logic for !Discover/!UPNP when !Listen.

pull/13/head
Gregory Maxwell 13 years ago
parent fab7858a35
commit 3bbb49de55

@ -344,7 +344,7 @@ bool AppInit2()
SoftSetBoolArg("-listen", false); 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) // do not map ports or try to retrieve public IP when not listening (pointless)
SoftSetBoolArg("-upnp", false); SoftSetBoolArg("-upnp", false);
SoftSetBoolArg("-discover", false); SoftSetBoolArg("-discover", false);

Loading…
Cancel
Save