aboutsummaryrefslogtreecommitdiff
path: root/plugin/cache/cache.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-05-09 12:35:42 +0100
committerGravatar GitHub <noreply@github.com> 2018-05-09 12:35:42 +0100
commit0e5e59c327387472c60fb5f2f2c7d84a89b879c9 (patch)
tree48a0c7a1fcb6e94fc889e1cd4fd57632414f3e16 /plugin/cache/cache.go
parent68b45f5377ff0c8661f987398e316f3acae4835d (diff)
downloadcoredns-0e5e59c327387472c60fb5f2f2c7d84a89b879c9.tar.gz
coredns-0e5e59c327387472c60fb5f2f2c7d84a89b879c9.tar.zst
coredns-0e5e59c327387472c60fb5f2f2c7d84a89b879c9.zip
request.Match check Response bit as well (#1775)
* request.Match check Response bit as well We should check this bit and reject them as invalid. * Fix test
Diffstat (limited to 'plugin/cache/cache.go')
-rw-r--r--plugin/cache/cache.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugin/cache/cache.go b/plugin/cache/cache.go
index 972c2b5e1..4e64fa733 100644
--- a/plugin/cache/cache.go
+++ b/plugin/cache/cache.go
@@ -130,7 +130,6 @@ func (w *ResponseWriter) WriteMsg(res *dns.Msg) error {
}
if key != -1 && duration > 0 {
-
if w.state.Match(res) {
w.set(res, key, mt, duration)
cacheSize.WithLabelValues(w.server, Success).Set(float64(w.pcache.Len()))