From 13b7a436a6acf10f27e0d57a8f92372663302514 Mon Sep 17 00:00:00 2001 From: Anis Eleuch Date: Thu, 14 Nov 2024 13:59:15 +0100 Subject: [PATCH] Do not use http proxy transport when doing healtchecks --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 578cecf..e02c8d5 100644 --- a/main.go +++ b/main.go @@ -955,7 +955,7 @@ func configureSite(ctxt context.Context, ctx *cli.Context, siteNum int, siteStrs console.Fatalln(err) } backend := &Backend{siteNum, endpoint, proxy, &http.Client{ - Transport: proxy.Transport, + Transport: transport, }, 0, healthCheckURL, opts.healthCheckDuration, opts.healthCheckTimeout, &stats} go backend.healthCheck(ctxt) proxy.ErrorHandler = backend.ErrorHandler