mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Add filtering of arbitrary RR-types.
This commit is contained in:
@@ -829,19 +829,8 @@ static size_t process_reply(struct dns_header *header, time_t now, struct server
|
||||
break;
|
||||
}
|
||||
|
||||
if (rcode == NOERROR)
|
||||
{
|
||||
size_t modified = 0;
|
||||
|
||||
if (option_bool(OPT_FILTER_A))
|
||||
modified = rrfilter(header, &n, RRFILTER_A);
|
||||
|
||||
if (option_bool(OPT_FILTER_AAAA))
|
||||
modified += rrfilter(header, &n, RRFILTER_AAAA);
|
||||
|
||||
if (modified > 0)
|
||||
ede = EDE_FILTERED;
|
||||
}
|
||||
if (rcode == NOERROR && rrfilter(header, &n, RRFILTER_CONF) > 0)
|
||||
ede = EDE_FILTERED;
|
||||
|
||||
if (doctored)
|
||||
cache_secure = 0;
|
||||
|
||||
Reference in New Issue
Block a user