mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
Fix DNS provider module unmarshaling (closes #2676)
This commit is contained in:
parent
b44a22a9d4
commit
dd6aa91d72
1 changed files with 2 additions and 2 deletions
|
@ -66,10 +66,10 @@ func (m *ACMEManagerMaker) newManager(interactive bool) (certmagic.Manager, erro
|
|||
// Provision sets up m.
|
||||
func (m *ACMEManagerMaker) Provision(ctx caddy.Context) error {
|
||||
// DNS providers
|
||||
if m.Challenges.DNS != nil {
|
||||
if m.Challenges.DNSRaw != nil {
|
||||
val, err := ctx.LoadModuleInline("provider", "tls.dns", m.Challenges.DNSRaw)
|
||||
if err != nil {
|
||||
return fmt.Errorf("loading TLS storage module: %s", err)
|
||||
return fmt.Errorf("loading DNS provider module: %s", err)
|
||||
}
|
||||
m.Challenges.DNS = val.(challenge.Provider)
|
||||
m.Challenges.DNSRaw = nil // allow GC to deallocate - TODO: Does this help?
|
||||
|
|
Loading…
Reference in a new issue