diff options
author | 2019-06-01 03:40:12 -0400 | |
---|---|---|
committer | 2019-06-01 08:40:12 +0100 | |
commit | e1d0b63e3fade23864b0937300d637f6fa8bc56b (patch) | |
tree | aef7c24b7e8466c19baba2dbe7f1ebe0b58b9f17 /plugin/template/setup.go | |
parent | 3b3fb6f5835a673f96c458b14104165dec2fb9f2 (diff) | |
download | coredns-e1d0b63e3fade23864b0937300d637f6fa8bc56b.tar.gz coredns-e1d0b63e3fade23864b0937300d637f6fa8bc56b.tar.zst coredns-e1d0b63e3fade23864b0937300d637f6fa8bc56b.zip |
allow an empty response (#2855)
Diffstat (limited to 'plugin/template/setup.go')
-rw-r--r-- | plugin/template/setup.go | 4 |
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) } |