From b44c078538cacd8508a3ff30c4db9d22a030881f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 9 Aug 2019 12:04:29 +0200 Subject: [PATCH] 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. --- modules/rebinding/rebinding.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2