mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-28 07:24:19 +00:00
set hidden mode only if trust is enabled
This commit is contained in:
+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