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

Lines changed: 5 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy