diff options
author | Matt Corallo <matt@bluematt.me> | 2011-08-03 21:02:37 +0200 |
---|---|---|
committer | Matt Corallo <matt@bluematt.me> | 2011-08-03 22:16:29 +0200 |
commit | 01a509fa2616537a4b444966d6e4e451822b2abd (patch) | |
tree | 2c367c3ef775d61d93d6d881a30d9bc9229c9b1e /src | |
parent | 918150048a1d677731ab7f2b3f59fa9a7401d435 (diff) |
Don't listen if on TOR (resolves #441).
Diffstat (limited to 'src')
-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 266c992028..acfcc44d10 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++) |