summaryrefslogtreecommitdiff
path: root/modules/caddytls
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-07-18 09:15:23 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-07-18 09:15:23 -0600
commitdd6aa91d724ce90dc56839bcbd6d8de3ed44646d (patch)
treee67059ddfd7e77b946cb38554621992788658122 /modules/caddytls
parentb44a22a9d45443aa736a04495dfe716b62b58adc (diff)
Fix DNS provider module unmarshaling (closes #2676)
Diffstat (limited to 'modules/caddytls')
-rw-r--r--modules/caddytls/acmemanager.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddytls/acmemanager.go b/modules/caddytls/acmemanager.go
index 32b6809..13c515f 100644
--- a/modules/caddytls/acmemanager.go
+++ b/modules/caddytls/acmemanager.go
@@ -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?