mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-27 04:35:25 +00:00
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:
parent
b055a26dc3
commit
41c7d98b7b
@ -310,8 +310,12 @@ const bold = (text: string | number): string | number => {
|
||||
} else {
|
||||
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("Started (click the link below to open):");
|
||||
logger.info(url);
|
||||
|
Loading…
Reference in New Issue
Block a user