fix: avoid _grpc_config DNS lookups from agent healthcheck (#4640)
Push container / Push branches and PRs (push) Has been cancelled
Deploy VitePress site to Pages / build (push) Has been cancelled
Deploy VitePress site to Pages / Deploy (push) Has been cancelled
Test / Typecheck (push) Has been cancelled
Test / JavaScript Tests (push) Has been cancelled
Test / Go Tests (push) Has been cancelled
Test / Go Staticcheck (push) Has been cancelled
Test / Integration Tests (push) Has been cancelled

This commit is contained in:
Amir Raminfar
2026-04-18 09:18:12 -07:00
committed by GitHub
parent c48dcc5c4b
commit 837b994c19
+1 -1
View File
@@ -18,7 +18,7 @@ func (h *HealthcheckCmd) Run(args Args, embeddedCerts embed.FS) error {
if data, err := os.ReadFile(agentAddrFile); err == nil {
agentAddress := string(data)
if host, port, err := net.SplitHostPort(agentAddress); err == nil && (host == "" || host == "::" || host == "0.0.0.0") {
agentAddress = "localhost:" + port
agentAddress = "127.0.0.1:" + port
}
certs, err := ReadCertificates(embeddedCerts, args.CertPath, args.KeyPath)
if err != nil {