mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-22 00:58:40 +08: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
@ -89,7 +89,7 @@ func (t *TLS) Provision(ctx caddy.Context) error {
|
|||||||
// automation/management policies
|
// automation/management policies
|
||||||
if t.Automation != nil {
|
if t.Automation != nil {
|
||||||
for i, ap := range t.Automation.Policies {
|
for i, ap := range t.Automation.Policies {
|
||||||
val, err := ctx.LoadModule(&ap, "ManagementRaw")
|
val, err := ctx.LoadModule(ap, "ManagementRaw")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("loading TLS automation management module: %s", err)
|
return fmt.Errorf("loading TLS automation management module: %s", err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user