Offer https/http url based on schema (#572)

* Let people know when telemetry is disabled, change url to https if secure connection

* Remove --no-auth as a http candidate

* Rename variable, change let to const
This commit is contained in:
John McCambridge 2019-04-23 16:38:34 -05:00 committed by Asher
parent b055a26dc3
commit 41c7d98b7b

View File

@ -310,8 +310,12 @@ const bold = (text: string | number): string | number => {
} else { } else {
logger.warn("Launched without authentication."); logger.warn("Launched without authentication.");
} }
if (options.disableTelemetry) {
logger.info("Telemetry is disabled");
}
const url = `http://localhost:${options.port}/`; const protocol = options.allowHttp ? "http" : "https";
const url = `${protocol}://localhost:${options.port}/`;
logger.info(" "); logger.info(" ");
logger.info("Started (click the link below to open):"); logger.info("Started (click the link below to open):");
logger.info(url); logger.info(url);