fix: if the ad flag is not set (no dnssec) return an empty result for security
This commit is contained in:
parent
574ba8afa3
commit
cd571dbceb
|
@ -224,6 +224,11 @@ async function handleDnsQuery(aq: ActiveQuery) {
|
||||||
|
|
||||||
const ret = await node.rs.answer(msg);
|
const ret = await node.rs.answer(msg);
|
||||||
|
|
||||||
|
if (!ret.ad) {
|
||||||
|
aq.respond([]);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
aq.respond(
|
aq.respond(
|
||||||
ret.collect(aq.callerInput.fqdn, wire.stringToType(aq.callerInput.type)),
|
ret.collect(aq.callerInput.fqdn, wire.stringToType(aq.callerInput.type)),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue