git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9181500
)
Don't listen if on TOR (resolves #441).
author
Matt Corallo
<matt@bluematt.me>
Wed, 3 Aug 2011 19:02:37 +0000 (21:02 +0200)
committer
Matt Corallo
<matt@bluematt.me>
Wed, 3 Aug 2011 20:16:29 +0000 (22:16 +0200)
src/init.cpp
patch
|
blob
|
history
diff --git
a/src/init.cpp
b/src/init.cpp
index
266c992
..
acfcc44
100644
(file)
--- 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++)