libgd: avoid recursive and redundant dependencies
[feed/packages.git] / net / knot-resolver / patches / 030-fix-policy-hack.patch
1 This patch fixes the problem with forwarding in knot-resolver v4.3.0.
2 It reintroduces a fix which enables policy related hack (knot/knot-resolver#205 (comment 94566) )
3 --- a/modules/policy/policy.lua
4 +++ b/modules/policy/policy.lua
5 @@ -1098,7 +1098,7 @@ policy.layer = {
6 if bit.band(state, bit.bor(kres.FAIL, kres.DONE)) ~= 0 then return state end
7 local qry = req:initial() -- same as :current() but more descriptive
8 return policy.evaluate(policy.rules, req, qry, state)
9 - or (special_names_optim(req, qry.sname)
10 + or (true--special_names_optim(req, qry.sname)
11 and policy.evaluate(policy.special_names, req, qry, state))
12 or state
13 end,