mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-14 14:56:27 +03:00
reverseproxy: Avoid returning a nil
error during GetClientCertificate (#4550)
This commit is contained in:
parent
ff74a0aa09
commit
7557d1d922
1 changed files with 3 additions and 0 deletions
|
@ -364,6 +364,9 @@ func (t TLSConfig) MakeTLSClientConfig(ctx caddy.Context) (*tls.Config, error) {
|
|||
return &cert.Certificate, nil
|
||||
}
|
||||
}
|
||||
if err == nil {
|
||||
err = fmt.Errorf("no client certificate found for automate name: %s", t.ClientCertificateAutomate)
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue