From 4657fe86c56e8969ab77b46d9aab966ef119e4e6 Mon Sep 17 00:00:00 2001 From: Dan Cunningham Date: Sat, 21 Apr 2018 12:52:27 -0700 Subject: [PATCH] Revert "Specify HOST for express server to listen on #168 (#172)" This reverts commit 8e950655915b5782b1c4bed1cb76c6d242404e9a. --- app.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app.js b/app.js index 1501091..5cacf25 100644 --- a/app.js +++ b/app.js @@ -224,7 +224,6 @@ if (app.get('env') === 'development') { // App configuration for all environments app.set('port', process.env.PORT || 3000); -app.set('host', process.env.HOST || '0.0.0.0'); app.set('views', __dirname + '/views'); app.set('view engine', 'ejs'); app.use(favicon(__dirname + '/public/img/favicon.ico')); @@ -341,11 +340,8 @@ app.use(function (req, res, next) { }); app.use(serveStatic(path.join(__dirname, 'public'))); -var server = app.listen({ - host:app.get('host'), - port:app.get('port') - }, function () { - logger.info('openHAB-cloud: express server listening on ' +app.get('host') + ':' + app.get('port')); +var server = app.listen(app.get('port'), function () { + logger.info('openHAB-cloud: express server listening on port ' + app.get('port')); }); var io = require('socket.io').listen(server, {