mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 13:11:40 +00:00
set hidden mode only if trust is enabled
This commit is contained in:
1 parent
a02ef28d80
commit
00ceacd35a
1 file changed
+6
-7
+6
-7
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user