Permalink
Browse files

Don't listen if on TOR (resolves #441).

  • Loading branch information...
TheBlueMatt committed Aug 3, 2011
1 parent 9181500 commit 01a509fa2616537a4b444966d6e4e451822b2abd
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/init.cpp
View
@@ -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++)

0 comments on commit 01a509f

Please sign in to comment.