From 65c57c730cd4ef0ca2de3f3c4a38694fb85bac6c Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 17 Feb 2021 10:52:04 -0500 Subject: [PATCH] docs: added comment re: #9305 --- src/install.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/install.js b/src/install.js index 4b22bc4037..f06c5cc6f0 100644 --- a/src/install.js +++ b/src/install.js @@ -174,6 +174,8 @@ async function completeConfigSetup(config) { if (!/^http(?:s)?:\/\//.test(config.url)) { config.url = `http://${config.url}`; } + + // If port is explicitly passed via install vars, use it. Otherwise, glean from url if set. const urlObj = url.parse(config.url); if (urlObj.port && (!install.values || !install.values.hasOwnProperty('port'))) { config.port = urlObj.port;