File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { createApp, type ServerConfig } from '../server/app';
55
66const LOOPBACK_ADDRESSES = new Set ( [ '127.0.0.1' , 'localhost' , '::1' , '[::1]' ] ) ;
77const DEFAULT_HOST = '127.0.0.1' ;
8+ const DEFAULT_PORT = 4097 ;
89const HEALTH_CHECK_MAX_RETRIES = 10 ;
910const HEALTH_CHECK_BACKOFF_MS = 100 ;
1011
@@ -89,8 +90,9 @@ export const openCommand: CommandModule<object, OpenOptions> = {
8990 } )
9091 . option ( 'port' , {
9192 type : 'number' ,
92- describe : 'Fixed port (default: ephemeral)' ,
93- alias : 'p'
93+ describe : 'Port to listen on' ,
94+ alias : 'p' ,
95+ default : DEFAULT_PORT
9496 } )
9597 . option ( 'host' , {
9698 type : 'string' ,
@@ -115,7 +117,7 @@ export const openCommand: CommandModule<object, OpenOptions> = {
115117
116118async function runOpen ( argv : OpenOptions ) : Promise < void > {
117119 const host = argv . host ;
118- const port = argv . port ?? 0 ; // 0 = ephemeral port
120+ const port = argv . port ;
119121 const token = generateToken ( ) ; // Always generate token for defense-in-depth
120122
121123 // Security: --expose and --web together is not allowed (SSRF protection)
You can’t perform that action at this time.
0 commit comments