set hidden mode only if trust is enabled

This commit is contained in:
orignal
2026-02-28 15:46:36 -05:00
parent a02ef28d80
commit 00ceacd35a
+6 -7
View File
@@ -287,13 +287,12 @@ namespace util
}
if(!restricted)
LogPrint(eLogError, "Daemon: No trusted routers of families specified");
}
bool hidden; i2p::config::GetOption("trust.hidden", hidden);
if (hidden)
{
LogPrint(eLogInfo, "Daemon: Hidden mode enabled");
i2p::context.SetHidden(true);
bool hidden; i2p::config::GetOption("trust.hidden", hidden);
if (hidden)
{
LogPrint(eLogInfo, "Daemon: Hidden mode enabled");
i2p::context.SetHidden(true);
}
}
std::string httpLang; i2p::config::GetOption("http.lang", httpLang);