1
0
Fork 0
forked from mirror/openwrt
openwrt/package/network/services/dnsmasq/files
Eric ZHANG d136c24f7c
dnsmasq: fix handlers for options filter_rr and cache_rr
According to:
- https://github.com/openwrt/luci/blob/master/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js#L700
- https://github.com/openwrt/luci/blob/master/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js#L402

These two options should be of type `MultiValue` but here there're used as single value. This results in dnsmasq crashes when either of these options are set with multiple values, which leads to an invalid space-separated value.

As these options are designed to take multiple values, I think it's better to use list format eg. `list filter_rr 'AAAA'`, instead of `option filter_rr 'AAAA,HTTPS'`.

See: https://forum.openwrt.org/t/selecting-more-than-one-filter-arbitrary-rr-or-cache-arbitrary-rr-in-v24-10-0-crashes-dnsmasq/225801

Tested on 24.10.0

Signed-off-by: Eric ZHANG <ericzhangjx@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18149
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-03-09 17:26:48 +01:00
..
50-dnsmasq-migrate-ipset.sh dnsmasq: add uci-defaults script for ipset migration 2022-11-06 19:47:13 +00:00
50-dnsmasq-migrate-resolv-conf-auto.sh dnsmasq: fix uci-defaults script to exit 0 so it is cleaned up 2020-02-19 22:02:59 +01:00
dhcp-script.sh dnsmasq: pass environment variables to hotplug 2024-12-12 11:00:38 +01:00
dhcp.conf dnsmasq: set an increased cachesize default value 2023-01-21 11:13:44 +01:00
dhcpbogushostname.conf dnsmasq: add dhcp-ignore-names support - CERT VU#598349 2018-10-09 09:45:16 +01:00
dnsmasq.conf packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
dnsmasq.init dnsmasq: fix handlers for options filter_rr and cache_rr 2025-03-09 17:26:48 +01:00
dnsmasq_acl.json dnsmasq: add ubus acl to allow calls to hotplug.tftp object 2021-11-12 15:02:58 +00:00
dnsmasqsec.hotplug dnsmasq: switch to ubus-based hotplug call 2021-02-08 00:57:14 +00:00
rfc6761.conf dnsmasq: remove example domains from rfc6761.conf (FS#1447) 2018-04-09 17:35:17 +02:00