Skip to content

Commit

Permalink
Offer https/http url based on schema (coder#572)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nol166 authored and code-asher committed Apr 23, 2019
1 parent b055a26 commit 41c7d98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/server/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 41c7d98

Please sign in to comment.