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:
parent
d8a6525381
commit
41388c0332
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user