missing key causes message (issue #353)

This commit is contained in:
flowtron
2021-08-15 16:47:05 +02:00
parent f340e8851b
commit a2d46e4346
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -361,5 +361,10 @@ void servermsinit(bool listen)
if(lansock == ENET_SOCKET_NULL) mlog(ACLOG_WARNING, "could not create LAN server info socket");
else enet_socket_set_option(lansock, ENET_SOCKOPT_NONBLOCK, 1);
}
if(!usemaster) mlog(ACLOG_INFO, "server is LAN-only - without connection to masterserver");
if(!usemaster){
mlog(ACLOG_INFO, "server is LAN-only - without connection to masterserver");
if(listen){
if(!scl.ssk) mlog(ACLOG_INFO, "ACTION REQUIRED: you must provide a PRIVATE SERVER KEY via the '-Y' command line argument");
}
}
}