internal: check certificate value and not IsSet
closes #4369 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
1b001060a3
commit
06f67c738c
|
@ -64,7 +64,7 @@ func (w *Watcher) Check() {
|
||||||
func (w *Watcher) GetCertificate(ch *tls.ClientHelloInfo) (*tls.Certificate, error) {
|
func (w *Watcher) GetCertificate(ch *tls.ClientHelloInfo) (*tls.Certificate, error) {
|
||||||
var bestSelection *api.Tenant
|
var bestSelection *api.Tenant
|
||||||
for _, t := range w.tenants {
|
for _, t := range w.tenants {
|
||||||
if !t.WebCertificate.IsSet() {
|
if t.WebCertificate.Get() == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if *t.Default {
|
if *t.Default {
|
||||||
|
|
Reference in New Issue