mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
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.
This commit is contained in:
parent
57c6f22684
commit
87a742c1e5
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue