From: Grigorii Demidov Date: Fri, 3 Feb 2017 09:59:07 +0000 (+0100) Subject: modules/policy: allow QTRACE policy to be chained with other policies X-Git-Tag: v1.3.0~23^2~89^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe41990732fee64e8949f6bf16eb4e0b07c2d934;p=thirdparty%2Fknot-resolver.git modules/policy: allow QTRACE policy to be chained with other policies --- diff --git a/modules/policy/policy.lua b/modules/policy/policy.lua index e5d020a6d..da1461b6b 100644 --- a/modules/policy/policy.lua +++ b/modules/policy/policy.lua @@ -232,6 +232,7 @@ function policy.enforce(state, req, action) local qry = req:current() req.options = bit.bor(req.options, kres.query.TRACE) qry.flags = bit.bor(qry.flags, kres.query.TRACE) + return -- this allows to continue iterating over policy list elseif type(action) == 'function' then return action(state, req) end