You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
661 B

  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. @@ -1000,7 +1000,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,