From b38311da00b558d88878b88fa4fd73b8e5bc394f Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Thu, 4 Mar 2021 16:12:36 -0500 Subject: [PATCH] certificate.Store: Fix hostname registration check --- certificate/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)