openwrt-6.x/package/network
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
..
config ltq-vdsl-vr11-app: exit more quickly if orderly shutdown fails 2025-02-22 18:55:54 +01:00
ipv6 odhcp6c: update to Git HEAD (2024-09-25) 2024-11-19 08:03:42 +00:00
services dnsmasq: fix handlers for options filter_rr and cache_rr 2025-03-09 17:26:48 +01:00
utils ethtool: work-around ETHTOOL_GRSSH/ETHTOOL_SRSSH ABI breakage 2025-02-24 05:07:01 +00:00