From 06f67c738c13b3ad53076359c8fa92893e4ba325 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 5 Jan 2023 18:30:11 +0100 Subject: [PATCH] internal: check certificate value and not IsSet closes #4369 Signed-off-by: Jens Langhammer --- internal/web/tenant_tls/tenant_tls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/web/tenant_tls/tenant_tls.go b/internal/web/tenant_tls/tenant_tls.go index d32f17283..6577786be 100644 --- a/internal/web/tenant_tls/tenant_tls.go +++ b/internal/web/tenant_tls/tenant_tls.go @@ -64,7 +64,7 @@ func (w *Watcher) Check() { func (w *Watcher) GetCertificate(ch *tls.ClientHelloInfo) (*tls.Certificate, error) { var bestSelection *api.Tenant for _, t := range w.tenants { - if !t.WebCertificate.IsSet() { + if t.WebCertificate.Get() == nil { continue } if *t.Default {