]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
modules/policy: allow QTRACE policy to be chained with other policies
authorGrigorii Demidov <grigorii.demidov@nic.cz>
Fri, 3 Feb 2017 09:59:07 +0000 (10:59 +0100)
committerGrigorii Demidov <grigorii.demidov@nic.cz>
Fri, 3 Feb 2017 09:59:07 +0000 (10:59 +0100)
modules/policy/policy.lua

index e5d020a6de1c61763a902aa02cfcd8af31d526c5..da1461b6bfd050e033029e71b0a618fc7b873943 100644 (file)
@@ -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