certificate.Store: Allow certificate of scope '*'
This commit is contained in:
parent
6de05c4b5d
commit
3c9c087a25
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user