]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ta_sentinel: remove limit for IN class
authorPetr Špaček <petr.spacek@nic.cz>
Thu, 28 Jun 2018 10:57:49 +0000 (12:57 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 29 Jun 2018 10:10:57 +0000 (12:10 +0200)
Draft version -14 does not contain limitation to IN class.

References: knot/knot-resolver!596

modules/ta_sentinel/ta_sentinel.lua

index 4ee72c8046b95a23f95bfe302411610417083b19..e7500ea95e573c590dc916b15942079344d4aaa9 100644 (file)
@@ -13,9 +13,7 @@ function M.layer.finish(state, req, pkt)
                return state end -- an internal query, exit
 
        local kpkt = kres.pkt_t(pkt)
-       local matching = ((kpkt:qtype() == kres.type.A  or  kpkt:qtype() == kres.type.AAAA)
-                                         and  kpkt:qclass() == kres.class.IN)
-       if not matching then
+       if not (kpkt:qtype() == kres.type.A or kpkt:qtype() == kres.type.AAAA) then
                return state end
 
        -- fast filter by the length of the first label