From 98b112bb362581155f0395ef709fe0420a216c87 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 14 Apr 2014 15:28:41 -0400 Subject: [PATCH] use_port only accepts string but saves as boolean, accept both now previously, if you re-feed your config back in, it breaks --- src/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.js b/src/install.js index b133c68438..97cc2260db 100644 --- a/src/install.js +++ b/src/install.js @@ -179,7 +179,7 @@ function completeConfigSetup(err, config, next) { config.bcrypt_rounds = 12; config.upload_path = '/public/uploads'; - config.use_port = config.use_port.slice(0, 1) === 'y'; + config.use_port = typeof config.use_port === 'boolean' ? config.use_port : config.use_port.slice(0, 1) === 'y'; var urlObject = url.parse(config.base_url), relative_path = (urlObject.pathname && urlObject.pathname.length > 1) ? urlObject.pathname : '',