Skip to content

Commit 41c7d98

Browse files
nol166code-asher
authored andcommitted
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
1 parent b055a26 commit 41c7d98

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/server/src/cli.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,12 @@ const bold = (text: string | number): string | number => {
310310
} else {
311311
logger.warn("Launched without authentication.");
312312
}
313+
if (options.disableTelemetry) {
314+
logger.info("Telemetry is disabled");
315+
}
313316

314-
const url = `http://localhost:${options.port}/`;
317+
const protocol = options.allowHttp ? "http" : "https";
318+
const url = `${protocol}://localhost:${options.port}/`;
315319
logger.info(" ");
316320
logger.info("Started (click the link below to open):");
317321
logger.info(url);

0 commit comments

Comments
 (0)