diff options
| author | Adnan Maolood <[email protected]> | 2021-03-04 16:12:36 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-03-04 16:12:36 -0500 |
| commit | b38311da00b558d88878b88fa4fd73b8e5bc394f (patch) | |
| tree | 1bf5a1373935d989655789d3b7f7bb9baf87caf5 /certificate | |
| parent | tofu: Remove expiration timestamp from known hosts (diff) | |
| download | go-gemini-b38311da00b558d88878b88fa4fd73b8e5bc394f.tar.xz go-gemini-b38311da00b558d88878b88fa4fd73b8e5bc394f.zip | |
certificate.Store: Fix hostname registration check
Diffstat (limited to 'certificate')
| -rw-r--r-- | certificate/store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/certificate/store.go b/certificate/store.go index fd07ffe..e606221 100644 --- a/certificate/store.go +++ b/certificate/store.go @@ -107,7 +107,7 @@ func (s *Store) write(scope string, cert tls.Certificate) error { func (s *Store) Get(hostname string) (*tls.Certificate, error) { s.mu.RLock() defer s.mu.RUnlock() - _, ok := s.certs[hostname] + _, ok := s.scopes[hostname] if !ok { // Try wildcard wildcard := strings.SplitN(hostname, ".", 2) |