default the server name to the configuration name

This commit is contained in:
Smith
2023-10-16 10:12:02 +02:00
parent dbaf673261
commit b60e18ae53

View File

@@ -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() {