Skip to content

Commit 21f5ef2

Browse files
author
John McCambridge
committed
Let people know when telemetry is disabled, change url to https if secure connection
1 parent e61ea79 commit 21f5ef2

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+
let schema = (options.noAuth || options.allowHttp) ? "http" : "https";
318+
const url = `${schema}://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)