From: Vladimír Čunát Date: Fri, 9 Aug 2019 10:04:29 +0000 (+0200) Subject: rebinding nitpick: respect ALLOW_LOCAL flag X-Git-Tag: v4.2.1~10^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b44c078538cacd8508a3ff30c4db9d22a030881f;p=thirdparty%2Fknot-resolver.git rebinding nitpick: respect ALLOW_LOCAL flag Some people might want the rebinding module generally but still use policy to allow local addresses in some specific cases. --- diff --git a/modules/rebinding/rebinding.lua b/modules/rebinding/rebinding.lua index 967abe44e..25f92c9a4 100644 --- a/modules/rebinding/rebinding.lua +++ b/modules/rebinding/rebinding.lua @@ -95,7 +95,7 @@ function M.layer.consume(state, req, pkt) return state end local qry = req:current() - if qry.flags.CACHED then -- do not slow down cached queries + if qry.flags.CACHED or qry.flags.ALLOW_LOCAL then -- do not slow down cached queries return state end local bad_rr = check_pkt(pkt)