Commit ff4fbd35 authored by Grigorii Demidov's avatar Grigorii Demidov

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

parent f84ba814
Pipeline #36892 passed with stages
in 12 minutes and 5 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