plugin/template: small tweaks (#1366)

Small README updates, and fallthrough fixes (using less code)
This commit is contained in:
Miek Gieben
2018-01-09 21:48:32 +00:00
committed by GitHub
parent 0091e1c9dc
commit a19ea63d3a
5 changed files with 46 additions and 51 deletions

View File

@@ -140,12 +140,7 @@ func templateParse(c *caddy.Controller) (handler Handler, err error) {
t.rcode = rcode
case "fallthrough":
args := c.RemainingArgs()
if len(args) > 0 {
t.fthrough.SetZonesFromArgs(c.RemainingArgs())
} else {
t.fthrough.SetZonesFromArgs(zones)
}
t.fall.SetZonesFromArgs(c.RemainingArgs())
default:
return handler, c.ArgErr()