From b1faca361481c4246af01dd3645b5372c7549e86 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 18 Jun 2014 19:34:33 -0400 Subject: [PATCH] saving portless hostNAME into server config, not the host! Argh. closed #1713 --- src/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.js b/src/install.js index 645ac02269..5338b62193 100644 --- a/src/install.js +++ b/src/install.js @@ -192,7 +192,7 @@ function completeConfigSetup(err, config, next) { var urlObject = url.parse(config.base_url), server_conf = config; - server_conf.base_url = urlObject.protocol + '//' + urlObject.host; + server_conf.base_url = urlObject.protocol + '//' + urlObject.hostname; server_conf.use_port = urlObject.port !== null ? true : false; server_conf.relative_path = (urlObject.pathname && urlObject.pathname.length > 1) ? urlObject.pathname : '';