diff options
| author | Philip Kaufmann <[email protected]> | 2014-06-16 08:48:32 +0200 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2015-06-27 13:45:18 +0000 |
| commit | 33333d2e886ca7c7fec5657c73f87cdd50c2ab44 (patch) | |
| tree | a649869cd9831afdab8d70ca91d20570e965630a /src/init.cpp | |
| parent | remove SOCKS4 support from core and GUI (diff) | |
| download | discoin-33333d2e886ca7c7fec5657c73f87cdd50c2ab44.tar.xz discoin-33333d2e886ca7c7fec5657c73f87cdd50c2ab44.zip | |
error out, when we detect -socks argument
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index cc15a1780..4cf58e932 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -548,6 +548,12 @@ bool AppInit2(boost::thread_group& threadGroup) // Check for -debugnet (deprecated) if (GetBoolArg("-debugnet", false)) InitWarning(_("Warning: Deprecated argument -debugnet ignored, use -debug=net")); + // Check for -socks - as this is a privacy risk to continue, exit here + if (mapArgs.count("-socks")) + return InitError(_("Error: Unsupported argument -socks found. Setting SOCKS version isn't possible anymore, only SOCKS5 proxies are supported.")); + // Check for -tor - as this is a privacy risk to continue, exit here + if (GetBoolArg("-tor", false)) + return InitError(_("Error: Unsupported argument -tor found, use -onion.")); fBenchmark = GetBoolArg("-benchmark", false); mempool.setSanityCheck(GetBoolArg("-checkmempool", RegTest())); |