Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
Fix DNS provider module unmarshaling (closes #2676)
Matthew Holt committed
Jul 18, 2019 at 09:15 UTC
dd6aa91d724ce90dc56839bcbd6d8de3ed44646d
1 file changed
+2
-2
modules/caddytls/acmemanager.go
+2
-2
@@ -66,10 +66,10 @@ func (m *ACMEManagerMaker) newManager(interactive bool) (certmagic.Manager, erro
66
// Provision sets up m.
67
func (m *ACMEManagerMaker) Provision(ctx caddy.Context) error {
68
// DNS providers
69
- if m.Challenges.DNS != nil {
69
+ if m.Challenges.DNSRaw != nil {
70
val, err := ctx.LoadModuleInline("provider", "tls.dns", m.Challenges.DNSRaw)
71
if err != nil {
72
- return fmt.Errorf("loading TLS storage module: %s", err)
72
+ return fmt.Errorf("loading DNS provider module: %s", err)
73
}
74
m.Challenges.DNS = val.(challenge.Provider)
75
m.Challenges.DNSRaw = nil // allow GC to deallocate - TODO: Does this help?