]> git.ipfire.org Git - thirdparty/pdns.git/commit
Allow Lua to modify the RPZ decision
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 22 Jul 2016 18:56:44 +0000 (20:56 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 25 Aug 2016 08:44:33 +0000 (10:44 +0200)
commitdb486de5e1c2980b8426c7197355d977d98fb0f6
treef0e3525cab5ded74b60c15cdf123f7ceb2043422
parent0022e5ed46e1c4e277a08a0bf6011c92f1243edc
Allow Lua to modify the RPZ decision

in preResolve() and postResolve(), the user can now modify the whole
appliedPolicy. For clarity, the appliedPolicy elements have been named
policySomething. one can set the policyKind with the helper
pdns.policykinds.Name.

When the query is not marked as 'handled' by the Lua function, the
(possibly modified) policy is applied to the query.
docs/markdown/recursor/scripting.md
pdns/lua-recursor4.cc
pdns/lua-recursor4.hh
pdns/pdns_recursor.cc