Skip to content

Commit

Permalink
Do not use http proxy transport when doing healtchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
Anis Eleuch committed Nov 14, 2024
1 parent 33b8516 commit 13b7a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13b7a43

Please sign in to comment.