mirror of
https://github.com/caddyserver/caddy.git
synced 2026-06-30 13:53:03 +00:00
tls: Update to match CertMagic refactor (#2571)
* Update to match CertMagic's refactoring * mod: CertMagic v0.5.0
This commit is contained in:
parent
fd6e4516dc
commit
917d9bc9da
8 changed files with 60 additions and 21 deletions
|
|
@ -234,7 +234,7 @@ func (h *httpContext) MakeServers() ([]caddy.Server, error) {
|
|||
// trusted CA (obviously not a perfect heuristic)
|
||||
var looksLikeProductionCA bool
|
||||
for _, publicCAEndpoint := range caddytls.KnownACMECAs {
|
||||
if strings.Contains(certmagic.CA, publicCAEndpoint) {
|
||||
if strings.Contains(certmagic.Default.CA, publicCAEndpoint) {
|
||||
looksLikeProductionCA = true
|
||||
break
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue