fix(cli): gateway status probe with TLS when bind=lan

- Use wss:// scheme when TLS is enabled (specifically for bind=lan)
- Load TLS runtime to get certificate fingerprint
- Pass fingerprint to probeGatewayStatus for self-signed cert trust
This commit is contained in:
Liu Yuan
2026-02-23 14:00:26 +08:00
committed by Shakker
parent d6eefe2e75
commit 90d426f9ad
2 changed files with 10 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ export async function probeGatewayStatus(opts: {
url: string;
token?: string;
password?: string;
tlsFingerprint?: string;
timeoutMs: number;
json?: boolean;
configPath?: string;
@@ -22,6 +23,7 @@ export async function probeGatewayStatus(opts: {
url: opts.url,
token: opts.token,
password: opts.password,
tlsFingerprint: opts.tlsFingerprint,
method: "status",
timeoutMs: opts.timeoutMs,
clientName: GATEWAY_CLIENT_NAMES.CLI,