pass admins array from config to server config

This commit is contained in:
Moritz Schmidt 2017-09-30 20:42:18 +02:00 committed by Björn Dahlgren
parent 2c5d8cfd30
commit af17f8a76d
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ module.exports = {
'@mod1', '@mod1',
'@mod2', '@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. 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 username: '', // Username for HTTP Basic Auth
password: '', // Password for HTTP Basic Auth password: '', // Password for HTTP Basic Auth

View File

@ -109,6 +109,7 @@ Server.prototype.getParameters = function () {
Server.prototype.start = function () { Server.prototype.start = function () {
var parameters = this.getParameters() var parameters = this.getParameters()
var server = new ArmaServer.Server({ var server = new ArmaServer.Server({
admins: config.admins,
battleEye: this.battle_eye ? 1 : 0, battleEye: this.battle_eye ? 1 : 0,
config: this.id, config: this.id,
disableVoN: this.von ? 0 : 1, disableVoN: this.von ? 0 : 1,