certificate.Store: Allow certificate of scope '*'

This commit is contained in:
Adnan Maolood
2021-02-23 08:46:43 -05:00
parent 6de05c4b5d
commit 3c9c087a25
+1 -1
View File
@@ -84,7 +84,7 @@ func (s *Store) Get(hostname string) (*tls.Certificate, error) {
cert, ok := s.certs[hostname]
if !ok {
// Try "*"
_, ok = s.certs["*"]
cert, ok = s.certs["*"]
}
if !ok {
// Try wildcard