Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 03:15 UTC
caddytls: Only make DNS solver if not already set (fix #6880)
Matthew Holt committed
Mar 7, 2025 at 09:46 UTC
adbe7f87e6bda96a1dddd94ecedefe3219a5304d
1 file changed
+2
-2
modules/caddytls/acmeissuer.go
+2
-2
@@ -146,8 +146,8 @@ func (iss *ACMEIssuer) Provision(ctx caddy.Context) error {
146
iss.AccountKey = accountKey
147
}
148
149
- // DNS challenge provider
150
- if iss.Challenges != nil && iss.Challenges.DNS != nil {
149
+ // DNS challenge provider, if not already established
150
+ if iss.Challenges != nil && iss.Challenges.DNS != nil && iss.Challenges.DNS.solver == nil {
151
var prov certmagic.DNSProvider
152
if iss.Challenges.DNS.ProviderRaw != nil {
153
// a challenge provider has been locally configured - use it