mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 18:23:25 -05: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:
@@ -380,6 +380,10 @@ func (r *Request) Match(reply *dns.Msg) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
if reply.Response == false {
|
||||
return false
|
||||
}
|
||||
|
||||
if strings.ToLower(reply.Question[0].Name) != r.Name() {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user