internal: check certificate value and not IsSet

closes #4369

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2023-01-05 18:30:11 +01:00
parent 1b001060a3
commit 06f67c738c
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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 {