Skip to content

Commit 0215494

Browse files
author
John McCambridge
committed
Correct http/https, add direct link to documentation
1 parent 9f35f9f commit 0215494

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/server/src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export class Entry extends Command {
224224
if (!flags["cert-key"] && !flags.cert) {
225225
logger.warn("No certificate specified. \u001B[1mThis could be insecure.");
226226
// TODO: fill in appropriate doc url
227-
logger.warn("Documentation on securing your setup: https://coder.com/docs");
227+
logger.warn("Documentation on securing your setup: https://github.com/codercom/code-server/blob/master/doc/self-hosted/index.md");
228228
}
229229

230230
if (!flags["no-auth"]) {
@@ -234,7 +234,7 @@ export class Entry extends Command {
234234
logger.warn("Launched without authentication.");
235235
}
236236

237-
const url = `http${flags["allow-http"] ? "s" : ""}://localhost:${flags.port}/`;
237+
const url = `http${flags["allow-http"] ? "" : "s"}://localhost:${flags.port}/`;
238238
logger.info(" ");
239239
logger.info("Started (click the link below to open):");
240240
logger.info(url);

0 commit comments

Comments
 (0)