diff options
author | AndyBan <[email protected]> | 2020-05-26 19:40:57 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-26 12:40:57 -0600 |
commit | 22055c5e0f07cf8865c148b8139d221123988aad (patch) | |
tree | e272de14834257fee991d3811d24141152491785 | |
parent | dfe802aed3d6f463bde3c7dde00497c1277eb35c (diff) | |
download | caddy-22055c5e0f07cf8865c148b8139d221123988aad.tar.gz caddy-22055c5e0f07cf8865c148b8139d221123988aad.zip |
reverseproxy: Fix https active health checks #3450 (#3451)
-rw-r--r-- | modules/caddyhttp/reverseproxy/healthchecks.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/reverseproxy/healthchecks.go b/modules/caddyhttp/reverseproxy/healthchecks.go index 96c9be253..ee56f33f8 100644 --- a/modules/caddyhttp/reverseproxy/healthchecks.go +++ b/modules/caddyhttp/reverseproxy/healthchecks.go @@ -198,7 +198,7 @@ func (h *Handler) doActiveHealthCheckForAllHosts() { func (h *Handler) doActiveHealthCheck(dialInfo DialInfo, hostAddr string, host Host) error { // create the URL for the request that acts as a health check scheme := "http" - if ht, ok := h.Transport.(*http.Transport); ok && ht.TLSClientConfig != nil { + if ht, ok := h.Transport.(TLSTransport); ok && ht.TLSEnabled() { // this is kind of a hacky way to know if we should use HTTPS, but whatever scheme = "https" } |