diff options
| author | Adnan Maolood <[email protected]> | 2021-02-20 18:25:37 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-20 18:26:15 -0500 |
| commit | d479c6391cb8ecac6402278f71a458a4e6616a8f (patch) | |
| tree | e9b160913a9c21eb08f95bddeb39580281920f2e /certificate | |
| parent | certificate.Store: Generate certificates by default (diff) | |
| download | go-gemini-d479c6391cb8ecac6402278f71a458a4e6616a8f.tar.xz go-gemini-d479c6391cb8ecac6402278f71a458a4e6616a8f.zip | |
certificate.Store: Support "*" wildcard pattern
Diffstat (limited to 'certificate')
| -rw-r--r-- | certificate/store.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/certificate/store.go b/certificate/store.go index 09f6cec..d4d48ce 100644 --- a/certificate/store.go +++ b/certificate/store.go @@ -90,6 +90,10 @@ func (s *Store) GetCertificate(scope string) (*tls.Certificate, error) { } } if !ok { + // Try "*" + _, ok = s.Lookup("*") + } + if !ok { return nil, errors.New("unrecognized scope") } |