Skip to content

Commit

Permalink
Merge branch 'main' into feat/cloudflare-tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 12, 2023
2 parents 38f5d86 + 0c55c9c commit b34bd35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const main = defineCommand({
type: "string",
description: "Path to TLS key used with HTTPS in PEM format",
},
"kettps.pfx": {
"https.pfx": {
type: "string",
description:
"Path to PKCS#12 (.p12/.pfx) keystore containing a TLS certificate and Key",
Expand Down Expand Up @@ -121,7 +121,7 @@ export const main = defineCommand({
qr: args.qr,
publicURL: args.publicURL,
public: args.public,
https: args.https ? parseHTTPSArgs(args) : false,
https: args.https ? _parseHTTPSArgs(args) : false,
};

const entry =
Expand All @@ -144,9 +144,9 @@ export const main = defineCommand({

export const runMain = () => _runMain(main);

// --- utils ---
// --- internal utils ---

export function parseHTTPSArgs(args: Record<string, any>): HTTPSOptions {
function _parseHTTPSArgs(args: Record<string, any>): HTTPSOptions {
const https: HTTPSOptions = {};

if (args["https.cert"]) {
Expand Down

0 comments on commit b34bd35

Please sign in to comment.