diff options
| author | Matt Corallo <[email protected]> | 2011-08-03 21:02:37 +0200 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2011-08-03 22:16:29 +0200 |
| commit | 01a509fa2616537a4b444966d6e4e451822b2abd (patch) | |
| tree | 2c367c3ef775d61d93d6d881a30d9bc9229c9b1e /src/init.cpp | |
| parent | Make it clear that setting proxy requires restart to fully apply. (diff) | |
| download | discoin-01a509fa2616537a4b444966d6e4e451822b2abd.tar.xz discoin-01a509fa2616537a4b444966d6e4e451822b2abd.zip | |
Don't listen if on TOR (resolves #441).
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 266c99202..acfcc44d1 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -247,7 +247,8 @@ bool AppInit2(int argc, char* argv[]) fPrintToDebugger = GetBoolArg("-printtodebugger"); fTestNet = GetBoolArg("-testnet"); - fNoListen = GetBoolArg("-nolisten"); + bool fTOR = (fUseProxy && addrProxy.port == htons(9050)); + fNoListen = GetBoolArg("-nolisten") || fTOR; fLogTimestamps = GetBoolArg("-logtimestamps"); for (int i = 1; i < argc; i++) |