diff --git a/config-sample.json b/config-sample.json index f766bcdd2300750c4386b1820deb8d7693f87f00..769a6bb60fb99b8ba72570a218abb2988b24afd6 100644 --- a/config-sample.json +++ b/config-sample.json @@ -1,4 +1,5 @@ { "apikey": "", + "listener": "0.0.0.0", "port": 9001 } diff --git a/index.js b/index.js index c1b87dc4a712b83d2d2f60b50a88478268213351..788693e2f629d34335af48383fc13be8815d4e79 100644 --- a/index.js +++ b/index.js @@ -114,6 +114,6 @@ app.post('/post', function(req, res){ }); //tells Node which port to listen on -app.listen(app.get('port'), function() { - console.log('Weather on the Slash is running on port', app.get('port')); +app.listen( app.get('port'), config.listener, function() { + console.log( 'Weather on the Slash is running on', config.listener, 'and port', app.get('port') ); });