Also set -bind=127.0.0.1 when -clearnet=0

This commit is contained in:
Duke
2025-03-03 11:59:52 -05:00
parent 5dc6db7e5c
commit e5d85af092

View File

@@ -1649,6 +1649,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
if (!GetBoolArg("-clearnet", DEFAULT_CLEARNET)) {
SoftSetBoolArg("-disableipv4", true);
SoftSetBoolArg("-disableipv6", true);
SoftSetArg("-bind", "127.0.0.1");
SoftSetArg("-onlynet", "onion");
SoftSetArg("-onlynet", "i2p");
SoftSetArg("-onion", "127.0.0.1:9050");