Detect -clearnet correctly

This commit is contained in:
Duke
2025-03-01 10:13:34 -05:00
parent cbc8995b36
commit d51c2ac20b

View File

@@ -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");