Prevent infinite loop in client requests
This commit is contained in:
parent
8e442146c3
commit
cc372e8768
|
@ -182,6 +182,8 @@ func (c *Client) getClientCertificate(req *Request) (*tls.Certificate, error) {
|
||||||
for {
|
for {
|
||||||
cert, err := c.Certificates.Lookup(scope)
|
cert, err := c.Certificates.Lookup(scope)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
// Store the certificate
|
||||||
|
req.Certificate = cert
|
||||||
return cert, err
|
return cert, err
|
||||||
}
|
}
|
||||||
if err == ErrCertificateExpired {
|
if err == ErrCertificateExpired {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user