]> 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)
committerOndřej Surý <ondrej@sury.org>
Tue, 28 Feb 2017 10:55:40 +0000 (11:55 +0100)
modules/policy/policy.lua

index 344e2298cf18c45796e027a57bf581f17e0c4e34..d7d3f83e3a0d135658db52990f01aed01622f66f 100644 (file)
@@ -238,6 +238,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