summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/caddyhttp.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/caddyhttp/caddyhttp.go')
-rw-r--r--modules/caddyhttp/caddyhttp.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/caddyhttp.go b/modules/caddyhttp/caddyhttp.go
index b6a8148..c044a9b 100644
--- a/modules/caddyhttp/caddyhttp.go
+++ b/modules/caddyhttp/caddyhttp.go
@@ -313,8 +313,8 @@ func (app *App) automaticHTTPS() error {
// don't obtain another one for it, unless we are
// supposed to ignore loaded certificates
if !srv.AutoHTTPS.IgnoreLoadedCerts &&
- len(tlsApp.CertificatesWithSAN(d)) > 0 {
- log.Printf("[INFO][%s] Skipping automatic certificate management because a certificate with that SAN is already loaded", d)
+ len(tlsApp.AllMatchingCertificates(d)) > 0 {
+ log.Printf("[INFO][%s] Skipping automatic certificate management because one or more matching certificates are already loaded", d)
continue
}
domainsForCerts = append(domainsForCerts, d)