certificate.Store: Allow certificate of scope '*'

This commit is contained in:
Adnan Maolood 2021-02-23 08:46:40 -05:00
parent 6de05c4b5d
commit 3c9c087a25

View File

@ -84,7 +84,7 @@ func (s *Store) Get(hostname string) (*tls.Certificate, error) {
cert, ok := s.certs[hostname] cert, ok := s.certs[hostname]
if !ok { if !ok {
// Try "*" // Try "*"
_, ok = s.certs["*"] cert, ok = s.certs["*"]
} }
if !ok { if !ok {
// Try wildcard // Try wildcard