Skip to content
Snippets Groups Projects
Commit ff4fbd35 authored by Grigorii Demidov's avatar Grigorii Demidov
Browse files

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

parent f84ba814
Branches
Tags
1 merge request!599modules.policy: REFUSE, TC - clear AD flag in answers
Pipeline #36892 passed with warnings 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
......
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