Skip to content

Commit 76cf6f2

Browse files
ivanmatmatioktalz
authored andcommitted
MINOR: keep https when ssl passthrough is removed
1 parent a82eeb3 commit 76cf6f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/handler/https.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func (handler HTTPS) toggleSSLPassthrough(passthrough bool, h haproxy.HAProxy) (
257257
return err
258258
}
259259
}
260-
if h.FrontendSSLOffloadEnabled(h.FrontHTTPS) {
260+
if h.FrontendSSLOffloadEnabled(h.FrontHTTPS) || h.FrontCertsInUse() {
261261
logger.Panic(h.FrontendEnableSSLOffload(h.FrontHTTPS, handler.CertDir, handler.alpn, handler.strictSNI))
262262
}
263263
return nil

0 commit comments

Comments
 (0)