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)