tell server to adhere to new option for network interface binding

This commit is contained in:
Thomas Efer 2016-08-05 14:30:22 +02:00 committed by GitHub
parent 53c1ef5786
commit aa9a469bb4

View file

@ -284,7 +284,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);