diff --git a/config.json b/config.json index a9d6fb4..a4d23b6 100644 --- a/config.json +++ b/config.json @@ -2,6 +2,7 @@ "server": { "id": 1, "host": "xxx.xxx.xxx.xxx", + "rconHost": "", "queryPort": 27165, "rconPort": 21114, "rconPassword": "password", diff --git a/squad-server/index.js b/squad-server/index.js index 6d7d886..c81f565 100644 --- a/squad-server/index.js +++ b/squad-server/index.js @@ -81,7 +81,7 @@ export default class SquadServer extends EventEmitter { setupRCON() { this.rcon = new Rcon({ - host: this.options.host, + host: this.options.rconHost || this.options.host, port: this.options.rconPort, password: this.options.rconPassword, autoReconnectInterval: this.options.rconAutoReconnectInterval