diff --git a/config/default.js b/config/default.js index a34d5c2..811398b 100644 --- a/config/default.js +++ b/config/default.js @@ -175,6 +175,7 @@ const _config = { enabled: false, port: 4242, proto: 'https', + host: "localhost", fqdn: os.hostname(), ttlSecs: 30 * 60, staticDir: HTTP_STATIC_DIR, diff --git a/http.js b/http.js index 2149e29..197a97a 100644 --- a/http.js +++ b/http.js @@ -273,7 +273,7 @@ redisListener.subscribe(PREFIX, (err) => { app.close(); }); - app.listen(config.http.port, (err, addr) => { + app.listen({host: config.http.host, port: config.http.port}, (err, addr) => { if (err) { throw err; }