Skip to content

Commit

Permalink
init plugins only for first zone in block (#1)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris O'Haver <[email protected]>
  • Loading branch information
chrisohaver authored May 12, 2021
1 parent 115eb7d commit 8adcfe6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions caddy.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,11 @@ func executeDirectives(inst *Instance, filename string,
ServerBlockStorage: storages[i][dir],
}

// only set up directives for the first key in a block
if j > 0 {
continue
}

setup, err := DirectiveAction(inst.serverType, dir)
if err != nil {
return err
Expand Down

0 comments on commit 8adcfe6

Please sign in to comment.