From af17f8a76ddffccd283da5f4d5abe0ec0c9bfbdd Mon Sep 17 00:00:00 2001 From: Moritz Schmidt Date: Sat, 30 Sep 2017 20:42:18 +0200 Subject: [PATCH] pass admins array from config to server config --- config.js.example | 1 + lib/server.js | 1 + 2 files changed, 2 insertions(+) diff --git a/config.js.example b/config.js.example index 7c2bb1a..1f86ddb 100644 --- a/config.js.example +++ b/config.js.example @@ -12,6 +12,7 @@ module.exports = { '@mod1', '@mod2', ], + admins: [], // add steam IDs here to enable #login without password auth: { // If both username and password is set, HTTP Basic Auth will be used. You may use an array to specify more than one user. username: '', // Username for HTTP Basic Auth password: '', // Password for HTTP Basic Auth diff --git a/lib/server.js b/lib/server.js index ecae88a..1fe3060 100644 --- a/lib/server.js +++ b/lib/server.js @@ -109,6 +109,7 @@ Server.prototype.getParameters = function () { Server.prototype.start = function () { var parameters = this.getParameters() var server = new ArmaServer.Server({ + admins: config.admins, battleEye: this.battle_eye ? 1 : 0, config: this.id, disableVoN: this.von ? 0 : 1,