From 76cf6f20751bb59c7b409e9cbbc10e2df6e64574 Mon Sep 17 00:00:00 2001 From: Ivan Matmati Date: Tue, 13 Jun 2023 13:38:00 +0200 Subject: [PATCH] MINOR: keep https when ssl passthrough is removed --- pkg/handler/https.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/handler/https.go b/pkg/handler/https.go index d3114f66..8e57791b 100644 --- a/pkg/handler/https.go +++ b/pkg/handler/https.go @@ -257,7 +257,7 @@ func (handler HTTPS) toggleSSLPassthrough(passthrough bool, h haproxy.HAProxy) ( return err } } - if h.FrontendSSLOffloadEnabled(h.FrontHTTPS) { + if h.FrontendSSLOffloadEnabled(h.FrontHTTPS) || h.FrontCertsInUse() { logger.Panic(h.FrontendEnableSSLOffload(h.FrontHTTPS, handler.CertDir, handler.alpn, handler.strictSNI)) } return nil