Browse Source

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.
master
Matthew Holt 5 years ago
parent
commit
87a742c1e5
No known key found for this signature in database GPG Key ID: 2A349DD577D586A5
  1. 2
      modules/caddytls/tls.go

2
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)
}

Loading…
Cancel
Save