diff --git a/component/tls/config.go b/component/tls/config.go index 06dd88f7..b5b56591 100644 --- a/component/tls/config.go +++ b/component/tls/config.go @@ -40,6 +40,9 @@ func ResetCertificate() { } func getCertPool() *x509.CertPool { + if len(trustCerts) == 0 { + return nil + } if certPool == nil { mutex.Lock() defer mutex.Unlock()