Adding support for multi-ip rcon

This commit is contained in:
Levent007 2020-12-12 21:47:06 +01:00
parent 48be35567c
commit c787aa3565
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
"server": {
"id": 1,
"host": "xxx.xxx.xxx.xxx",
"rconHost": "",
"queryPort": 27165,
"rconPort": 21114,
"rconPassword": "password",

View File

@ -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