Merge pull request #36 from efi-the-forking-continues/master

new feature: command line option for bind address
This commit is contained in:
Petr Sloup
2016-08-07 20:45:29 +08:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -293,7 +293,7 @@ module.exports = function(opts, callback) {
return data;
});
var server = app.listen(process.env.PORT || opts.port, function() {
var server = app.listen(process.env.PORT || opts.port, process.env.BIND || opts.bind, function() {
console.log('Listening at http://%s:%d/',
this.address().address, this.address().port);