From edcde00dcc3a70ccac636f55d9a80f4cf2de1552 Mon Sep 17 00:00:00 2001 From: yusing Date: Fri, 16 Jan 2026 10:06:24 +0800 Subject: [PATCH] fix(health): correct url for agent health check and properly update docker fallback url --- internal/health/monitor/new.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/health/monitor/new.go b/internal/health/monitor/new.go index 5c2913de..dbad4260 100644 --- a/internal/health/monitor/new.go +++ b/internal/health/monitor/new.go @@ -106,6 +106,7 @@ func NewDockerHealthMonitor(config types.HealthCheckConfig, client *docker.Share logger.Err(err).Msg("docker health check failed, using fallback") } } + fallback.UpdateURL(u) return fallback.CheckHealth() } return result, nil @@ -116,7 +117,7 @@ func NewDockerHealthMonitor(config types.HealthCheckConfig, client *docker.Share func NewAgentProxiedMonitor(config types.HealthCheckConfig, agent *agentpool.Agent, targetUrl *url.URL) Monitor { var mon monitor mon.init(targetUrl, config, func(u *url.URL) (result Result, err error) { - return CheckHealthAgentProxied(agent, config.Timeout, targetUrl) + return CheckHealthAgentProxied(agent, config.Timeout, u) }) return &mon }