Skip to content

Commit

Permalink
MINOR: keep https when ssl passthrough is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmatmati authored and oktalz committed Jun 20, 2023
1 parent a82eeb3 commit 76cf6f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/handler/https.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76cf6f2

Please sign in to comment.