Detect -clearnet correctly
This commit is contained in:
@@ -1646,7 +1646,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||
//fprintf(stderr,"%s tik18\n", __FUNCTION__);
|
||||
|
||||
// Disable clearnet peers if -clearnet=0
|
||||
if (mapArgs.count("-clearnet") && mapArgs["-clearnet"] == 0) {
|
||||
if (!GetBoolArg("-clearnet", DEFAULT_CLEARNET)) {
|
||||
SoftSetBoolArg("-disableipv4", true);
|
||||
SoftSetBoolArg("-disableipv6", true);
|
||||
SoftSetArg("-onlynet", "onion");
|
||||
|
||||
Reference in New Issue
Block a user