From 00ceacd35ae7b88d90a1acee2e0d0aab9353a0df Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 28 Feb 2026 15:46:36 -0500 Subject: [PATCH] set hidden mode only if trust is enabled --- daemon/Daemon.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/daemon/Daemon.cpp b/daemon/Daemon.cpp index fef05cbf..13a57311 100644 --- a/daemon/Daemon.cpp +++ b/daemon/Daemon.cpp @@ -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);