]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
modules/{policy,view}: do not act if FAIL or DONE
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 12 Dec 2018 14:29:23 +0000 (15:29 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Thu, 13 Dec 2018 16:28:07 +0000 (17:28 +0100)
commitc16728f5c155cdf569eae960bb68e5d9d8e3683d
tree2fa0e3ddb87886b95236f9544367a7fd888acf71
parent1f2986db59623b77d41f86f6e6c9692fe786a800
modules/{policy,view}: do not act if FAIL or DONE

Not all actions are destructive, but it seems generally expected that if
an earlier module or other code already transitioned the request into
a FAIL or DONE state, we don't want to apply rules anymore.
In particular, later rule actions would "overwrite" what previous
actions did.
modules/policy/policy.lua
modules/view/view.lua