From a2d46e434603b6c78eeb8ffa9b6175aea920482e Mon Sep 17 00:00:00 2001 From: flowtron Date: Sun, 15 Aug 2021 16:47:05 +0200 Subject: [PATCH] missing key causes message (issue #353) --- source/src/cube.h | 2 +- source/src/serverms.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/source/src/cube.h b/source/src/cube.h index 90b961ea..0fec17d1 100644 --- a/source/src/cube.h +++ b/source/src/cube.h @@ -64,7 +64,7 @@ extern float waterlevel; #define AC_MASTER_URI "ms.cubers.net" -// uncommend this line for production release +// uncomment this line for production release //#define PRODUCTION #ifdef PRODUCTION diff --git a/source/src/serverms.cpp b/source/src/serverms.cpp index 203310de..7b702ee0 100644 --- a/source/src/serverms.cpp +++ b/source/src/serverms.cpp @@ -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"); + } + } }