Commit 2de02515 authored by Grigorii Demidov's avatar Grigorii Demidov

Merge branch 'policy_clear_ad' into 'master'

modules.policy: REFUSE, TC - clear AD flag in answers

See merge request !599
parents f84ba814 ff4fbd35
Pipeline #36911 passed with stages
in 6 minutes and 29 seconds
......@@ -493,6 +493,7 @@ end
function policy.REFUSE(_, req)
local answer = req.answer
answer:rcode(kres.rcode.REFUSED)
answer:ad(false)
return kres.DONE
end
......@@ -500,6 +501,7 @@ function policy.TC(state, req)
local answer = req.answer
if answer.max_size ~= 65535 then
answer:tc(1) -- ^ Only UDP queries
answer:ad(false)
return kres.DONE
else
return state
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment