Merge pull request #11 from NemesisRE/master

Added possibility for listen address
This commit is contained in:
Björn Dahlgren 2015-05-29 18:58:12 +02:00
commit 1f3f2d605a
3 changed files with 3 additions and 1 deletions

View File

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

2
app.js
View File

@ -50,4 +50,4 @@ manager.on('servers', function() {
io.emit('servers', manager.getServers());
});
server.listen(config.port);
server.listen(config.port,config.host);

View File

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