luci-mod-network: Restructure DHCP options
authorPaul Donald <newtwen@gmail.com>
Thu, 25 Jan 2024 23:57:09 +0000 (00:57 +0100)
committerPaul Donald <newtwen@gmail.com>
Sun, 28 Jan 2024 15:02:17 +0000 (16:02 +0100)
Multiple dnsmasq sections are now enabled (for those who want
e.g. separate dnsmasq options per interface).

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 09ab7641738c35b2f7bfbcfe62fc77fe1c77c3c9)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index b64ab3b7d42bbad137d56792d715b166da2d156c..85018238da875e8c727ca2ece94611aa16dab840 100644 (file)
@@ -250,8 +250,8 @@ return view.extend({
                        _('Dnsmasq is a lightweight <abbr title="Dynamic Host Configuration Protocol">DHCP</abbr> server and <abbr title="Domain Name System">DNS</abbr> forwarder.'));
 
                s = m.section(form.TypedSection, 'dnsmasq');
-               s.anonymous = true;
-               s.addremove = false;
+               s.anonymous = false;
+               s.addremove = true;