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

@@ -31,7 +31,7 @@ type template struct {
authority []*gotmpl.Template
qclass uint16
qtype uint16
fthrough fall.F
fall fall.F
}
type templateData struct {
@@ -177,5 +177,5 @@ func (t template) match(state request.Request, zone string) (templateData, bool,
return data, true, false
}
return data, false, t.fthrough.Through(state.Name())
return data, false, t.fall.Through(state.Name())
}