diff --git a/README.md b/README.md index 1fd4d47..6117751 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ Key | Description game | Which game server to launch, see above path | Folder path to game server port | Web port to use +host | IP or Hostname to listen on type | Which kind of server to use, can be 'linux', 'windows' or 'wine' ## How to Use diff --git a/app.js b/app.js index 32b9eeb..dbd3f64 100644 --- a/app.js +++ b/app.js @@ -50,4 +50,4 @@ manager.on('servers', function() { io.emit('servers', manager.getServers()); }); -server.listen(config.port); +server.listen(config.port,config.host); diff --git a/config.js.example b/config.js.example index e0fdbbd..4ed2b0a 100644 --- a/config.js.example +++ b/config.js.example @@ -2,5 +2,6 @@ module.exports = { game: 'arma3', // arma3, arma2oa, arma2, arma1, cwa, ofpresistance, ofp path: 'path-to-arma3-directory', port: 3000, + host: '0.0.0.0', // Can be either an IP or a Hostname type: 'linux', // Can be either linux, windows or wine };