mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
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
This commit is contained in:
1
plugin/cache/cache.go
vendored
1
plugin/cache/cache.go
vendored
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user