diff --git a/src/commands/proxy-command.ts b/src/commands/proxy-command.ts index 87fd8220..391ad05e 100644 --- a/src/commands/proxy-command.ts +++ b/src/commands/proxy-command.ts @@ -136,7 +136,7 @@ async function handleStatus(args: string[] = []): Promise { const printStatus = (status: Awaited>) => { 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) {