Skip to content

Commit 0784fe7

Browse files
authored
httpsvr: Fix cert cache key (#88)
1 parent 0905a14 commit 0784fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpsvr/httpsvr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (s *Server) getCertificate(_ *tls.ClientHelloInfo) (*tls.Certificate, error
146146
if s.reload == 0 {
147147
s.reload = defaultReload
148148
}
149-
certCache.Set("cert", cert, s.reload, s.loadCertificate)
149+
certCache.Set(s.certFile+s.keyFile, cert, s.reload, s.loadCertificate)
150150

151151
return cert, nil
152152
}

0 commit comments

Comments
 (0)