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.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/plugin/template/setup.go b/plugin/template/setup.go
index 9f122277a..33eeb086f 100644
--- a/plugin/template/setup.go
+++ b/plugin/template/setup.go
@@ -155,10 +155,6 @@ func templateParse(c *caddy.Controller) (handler Handler, err error) {
t.regex = append(t.regex, regexp.MustCompile(".*"))
}
- 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)
- }
-
handler.Templates = append(handler.Templates, t)
}