File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -370,8 +370,8 @@ type HealthCheck = {
370370 label : string ;
371371} ;
372372
373- async function checkProxyHealth ( port : number ) : Promise < HealthCheck > {
374- const url = `http://127.0.0.1 :${ port } /healthz` ;
373+ async function checkProxyHealth ( port : number , hostname ?: string ) : Promise < HealthCheck > {
374+ const url = `http://${ healthHost ( hostname ) } :${ port } /healthz` ;
375375 const controller = new AbortController ( ) ;
376376 const timer = setTimeout ( ( ) => controller . abort ( ) , 800 ) ;
377377 try {
@@ -393,7 +393,7 @@ async function handleStatus() {
393393 const config = loadConfig ( ) ;
394394 const port = config . port ?? 10100 ;
395395 const pid = readPid ( ) ;
396- const health = await checkProxyHealth ( port ) ;
396+ const health = await checkProxyHealth ( port , config . hostname ) ;
397397 const proxyLabel = pid && health . ok
398398 ? `running (PID ${ pid } )`
399399 : pid
You can’t perform that action at this time.
0 commit comments