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>
Thu, 25 Jan 2024 23:57:24 +0000 (00:57 +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>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index 5ae10f6d4cefcc9b6613e50a0a71d8fbbf458099..2166d34a85f7f039047854d10f808445ddb7fc1b 100644 (file)
@@ -316,8 +316,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;