Add UCI support for record filtering in dnsmasq replies. The new "dnsfilter"
option can take either "A" or "AAAA" as possible values, enabling filtering of
IPv4 or IPv6 addresses, respectively.
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
;;
esac
+ config_get dnsfilter "$cfg" "dnsfilter"
+ case "$dnsfilter" in
+ A|AAAA)
+ xappend "--filter-$dnsfilter"
+ ;;
+ esac
+
append_bool "$cfg" fqdn "--dhcp-fqdn"
append_bool "$cfg" proxydnssec "--proxy-dnssec"
append_bool "$cfg" localservice "--local-service"