mirror of
https://github.com/amir20/dozzle.git
synced 2026-06-23 04:10:12 +00:00
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
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user