tell server to adhere to new option for network interface binding

This commit is contained in:
Thomas Efer authored and GitHub committed 2016-08-05 14:30:22 +02:00
1 parent 53c1ef5786
commit aa9a469bb4
1 file changed
+1 -1
+1 -1
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);