aboutsummaryrefslogtreecommitdiff
path: root/plugin/template/setup.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/template/setup.go')
-rw-r--r--plugin/template/setup.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/template/setup.go b/plugin/template/setup.go
index a1190d481..8c55f4115 100644
--- a/plugin/template/setup.go
+++ b/plugin/template/setup.go
@@ -159,7 +159,7 @@ func templateParse(c *caddy.Controller) (handler Handler, err error) {
t.regex = append(t.regex, regexp.MustCompile(".*"))
}
- if len(t.answer) == 0 && len(t.additional) == 0 && t.rcode == dns.RcodeSuccess {
+ if len(t.answer) == 0 && len(t.authority) == 0 && t.rcode == dns.RcodeSuccess {
return handler, c.Errf("no answer section for template found: %v", handler)
}