dns: fix log filtering

Previously only a subset of the records could be selected
in custom. Now allow any to be selected.
pull/2716/head
Jason Ish 8 years ago committed by Victor Julien
parent 4217c6839a
commit c7ddbbc586

@ -179,7 +179,8 @@ typedef enum {
DNS_RRTYPE_TSIG,
DNS_RRTYPE_MAILA,
DNS_RRTYPE_ANY,
DNS_RRTYPE_URI
DNS_RRTYPE_URI,
DNS_RRTYPE_MAX,
} DnsRRTypes;
static struct {
@ -754,7 +755,7 @@ static void JsonDnsLogInitFilters(LogDnsFileCtx *dnslog_ctx, ConfNode *conf)
if (field != NULL)
{
DnsRRTypes f;
for (f = DNS_RRTYPE_A; f < DNS_RRTYPE_TXT; f++)
for (f = DNS_RRTYPE_A; f < DNS_RRTYPE_MAX; f++)
{
if (strcasecmp(dns_rrtype_fields[f].config_rrtype,
field->val) == 0)

Loading…
Cancel
Save