mirror of
https://github.com/dogecoin/dogecoin.git
synced 2026-02-24 06:08:53 +00:00
error out, when we detect -socks argument
This commit is contained in:
parent
c5c5ddce02
commit
33333d2e88
@ -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()));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user