Skip to content

Commit a339a37

Browse files
author
Philip Kaufmann
committed
error out, when we detect -socks argument
1 parent 0127a9b commit a339a37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/init.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,9 @@ bool AppInit2(boost::thread_group& threadGroup)
565565
// Check for -debugnet (deprecated)
566566
if (GetBoolArg("-debugnet", false))
567567
InitWarning(_("Warning: Deprecated argument -debugnet ignored, use -debug=net"));
568+
// Check for -socks - as this is a privacy risk to continue, exit here
569+
if (mapArgs.count("-socks"))
570+
return InitError(_("Error: Unsupported argument -socks found. Setting SOCKS version isn't possible anymore, only SOCKS5 proxies are supported."));
568571
// Check for -tor - as this is a privacy risk to continue, exit here
569572
if (GetBoolArg("-tor", false))
570573
return InitError(_("Error: Unsupported argument -tor found, use -onion."));

0 commit comments

Comments
 (0)