From b60e18ae53f9c68edf342b893054559d52eae940 Mon Sep 17 00:00:00 2001 From: Smith Date: Mon, 16 Oct 2023 10:12:02 +0200 Subject: [PATCH] default the server name to the configuration name --- src/game-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game-server.ts b/src/game-server.ts index ffabf8f..ec0782a 100644 --- a/src/game-server.ts +++ b/src/game-server.ts @@ -83,7 +83,7 @@ export class GameServer { this.ip = '0.0.0.0'; this.config = config; this.history = new ServerHistory(config.host + ':' + config.port, config.graphHistoryHours, config.timezoneOffset); - this._niceName = config.host + ':' + config.port; + this._niceName = String(config.name) || config.host + ':' + config.port; } async update() {