mirror of
https://github.com/caddyserver/caddy.git
synced 2025-03-09 15:39:02 -04:00
caddytls: Only make DNS solver if not already set (fix #6880)
This commit is contained in:
parent
19876208c7
commit
adbe7f87e6
@ -146,8 +146,8 @@ func (iss *ACMEIssuer) Provision(ctx caddy.Context) error {
|
|||||||
iss.AccountKey = accountKey
|
iss.AccountKey = accountKey
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNS challenge provider
|
// DNS challenge provider, if not already established
|
||||||
if iss.Challenges != nil && iss.Challenges.DNS != nil {
|
if iss.Challenges != nil && iss.Challenges.DNS != nil && iss.Challenges.DNS.solver == nil {
|
||||||
var prov certmagic.DNSProvider
|
var prov certmagic.DNSProvider
|
||||||
if iss.Challenges.DNS.ProviderRaw != nil {
|
if iss.Challenges.DNS.ProviderRaw != nil {
|
||||||
// a challenge provider has been locally configured - use it
|
// a challenge provider has been locally configured - use it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user