From c49b0699c29b1ea080c97cc95748535a38f4ee8f Mon Sep 17 00:00:00 2001 From: Robin Persson Date: Mon, 26 Jan 2015 10:27:41 +0100 Subject: [PATCH] Fixed issue with not being able to disable the web interface --- lib/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index f92164f6..f4ccfe98 100644 --- a/lib/index.js +++ b/lib/index.js @@ -90,7 +90,9 @@ module.exports = function(config_hash) { app.use(require('./index-api')(config, auth, storage)) if (config.web && config.web.enable === false) { - next( Error[404]('web interface is disabled in the config file') ) + app.get('/', function(req, res, next) { + next( Error[404]('web interface is disabled in the config file') ) + }) } else { app.use(require('./index-web')(config, auth, storage)) }