aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/zenserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/zenserver.cpp')
-rw-r--r--src/zenserver/zenserver.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/zenserver/zenserver.cpp b/src/zenserver/zenserver.cpp
index 48a2dad95..44c25368c 100644
--- a/src/zenserver/zenserver.cpp
+++ b/src/zenserver/zenserver.cpp
@@ -187,7 +187,14 @@ ZenServer::Initialize(const ZenServerOptions& ServerOptions, ZenServerState::Zen
m_Http = CreateHttpServer(ServerOptions.HttpServerConfig);
int EffectiveBasePort = m_Http->Initialize(ServerOptions.BasePort, ServerOptions.DataDir);
- ZEN_ASSERT(EffectiveBasePort > 0);
+ if (EffectiveBasePort == 0)
+ {
+ ZEN_WARN("Failed to initialize http service '{}' using base port {} and data dir {}",
+ ServerOptions.HttpServerConfig.ServerClass,
+ ServerOptions.BasePort,
+ ServerOptions.DataDir);
+ return -1;
+ }
// Setup authentication manager
{
@@ -198,7 +205,10 @@ ZenServer::Initialize(const ZenServerOptions& ServerOptions, ZenServerState::Zen
{
EncryptionKey = "abcdefghijklmnopqrstuvxyz0123456";
- ZEN_WARN("using default encryption key");
+ if (ServerOptions.IsDedicated)
+ {
+ ZEN_WARN("Using default encryption key for authentication state");
+ }
}
std::string EncryptionIV = ServerOptions.EncryptionIV;
@@ -207,7 +217,10 @@ ZenServer::Initialize(const ZenServerOptions& ServerOptions, ZenServerState::Zen
{
EncryptionIV = "0123456789abcdef";
- ZEN_WARN("using default encryption initialization vector");
+ if (ServerOptions.IsDedicated)
+ {
+ ZEN_WARN("Using default encryption initialization vector for authentication state");
+ }
}
m_AuthMgr = AuthMgr::Create({.RootDirectory = m_DataRoot / "auth",