mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
plugin/template: small tweaks (#1366)
Small README updates, and fallthrough fixes (using less code)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user