fix: if the ad flag is not set (no dnssec) return an empty result for security

This commit is contained in:
Derrick Hammer 2023-08-03 15:07:43 -04:00
parent 574ba8afa3
commit cd571dbceb
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -224,6 +224,11 @@ async function handleDnsQuery(aq: ActiveQuery) {
const ret = await node.rs.answer(msg);
if (!ret.ad) {
aq.respond([]);
return;
}
aq.respond(
ret.collect(aq.callerInput.fqdn, wire.stringToType(aq.callerInput.type)),
);