summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-02-18 09:54:14 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2020-02-18 09:54:14 -0700
commit87a742c1e5d25129eb93f1be5fa52b5b6cdd8b06 (patch)
treeb1113d392188203a85590048cdf72705045b90ab /modules
parent57c6f22684e74191814a30f9de83a05c11ac4b78 (diff)
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.
Diffstat (limited to 'modules')
-rw-r--r--modules/caddytls/tls.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddytls/tls.go b/modules/caddytls/tls.go
index 7d80bfb..6be480a 100644
--- a/modules/caddytls/tls.go
+++ b/modules/caddytls/tls.go
@@ -89,7 +89,7 @@ func (t *TLS) Provision(ctx caddy.Context) error {
// automation/management policies
if t.Automation != nil {
for i, ap := range t.Automation.Policies {
- val, err := ctx.LoadModule(&ap, "ManagementRaw")
+ val, err := ctx.LoadModule(ap, "ManagementRaw")
if err != nil {
return fmt.Errorf("loading TLS automation management module: %s", err)
}