aboutsummaryrefslogtreecommitdiff
path: root/certificate
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-03-04 16:12:36 -0500
committerAdnan Maolood <[email protected]>2021-03-04 16:12:36 -0500
commitb38311da00b558d88878b88fa4fd73b8e5bc394f (patch)
tree1bf5a1373935d989655789d3b7f7bb9baf87caf5 /certificate
parenttofu: Remove expiration timestamp from known hosts (diff)
downloadgo-gemini-b38311da00b558d88878b88fa4fd73b8e5bc394f.tar.xz
go-gemini-b38311da00b558d88878b88fa4fd73b8e5bc394f.zip
certificate.Store: Fix hostname registration check
Diffstat (limited to 'certificate')
-rw-r--r--certificate/store.go2
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)