fix(proxy): avoid undefined status port output

This commit is contained in:
Wooseong Kim
2026-04-20 15:14:20 +09:00
parent c0c119867a
commit 54c3b2d40b
+1 -1
View File
@@ -136,7 +136,7 @@ async function handleStatus(args: string[] = []): Promise<number> {
const printStatus = (status: Awaited<ReturnType<typeof getOpenAICompatProxyStatus>>) => {
console.log(
status.running
? ok(`Proxy running on port ${status.port}`)
? ok(`Proxy running on port ${status.port ?? 'unknown'}`)
: info(`Proxy is not running${status.port ? ` (last known port ${status.port})` : ''}`)
);
if (status.host && status.port) {