diff options
| author | Philip Kaufmann <[email protected]> | 2014-06-16 08:48:32 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2014-07-07 08:15:14 +0200 |
| commit | a339a37b28176135c7fe5adbd3b50da77a45373d (patch) | |
| tree | 7b486f29525297acd9f689dc34d7dd8994fae833 /src/init.cpp | |
| parent | remove SOCKS4 support from core and GUI (diff) | |
| download | discoin-a339a37b28176135c7fe5adbd3b50da77a45373d.tar.xz discoin-a339a37b28176135c7fe5adbd3b50da77a45373d.zip | |
error out, when we detect -socks argument
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index a92d2aad6..db9247ef6 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -565,6 +565,9 @@ 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.")); |