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
tls: Fix panic loading automation management modules (fix #3004)
When AutomationPolicy was turned into a pointer, we continued passing a double pointer to LoadModule, oops.
Matthew Holt committed
Feb 18, 2020 at 09:54 UTC
87a742c1e5d25129eb93f1be5fa52b5b6cdd8b06
1 file changed
+1
-1
modules/caddytls/tls.go
+1
-1
@@ -89,7 +89,7 @@ func (t *TLS) Provision(ctx caddy.Context) error {
89
// automation/management policies
90
if t.Automation != nil {
91
for i, ap := range t.Automation.Policies {
92
- val, err := ctx.LoadModule(&ap, "ManagementRaw")
92
+ val, err := ctx.LoadModule(ap, "ManagementRaw")
93
if err != nil {
94
return fmt.Errorf("loading TLS automation management module: %s", err)
95
}