Configurable RCON IP for servers on the 'host' network where 'localhost' is not actually the socket to be listening to

This commit is contained in:
Kieran South 2020-04-16 16:34:37 +01:00
parent d8a6525381
commit 41388c0332

View File

@ -79,7 +79,7 @@ var poll = function( ) {
return JSON.stringify(packet);
}
var serverHostname = "localhost";
var serverHostname = process.env.RCON_IP ? process.env.RCON_IP : "localhost";
var serverPort = process.env.RCON_PORT;
var serverPassword = process.env.RCON_PASS;
var WebSocket = require("ws");