luci-mod-network: support dhcp.dnsmasq.ipset 5402/head
authorVladislav Grigoryev <vg.aetera@gmail.com>
Tue, 28 Sep 2021 03:56:35 +0000 (06:56 +0300)
committerVladislav Grigoryev <vg.aetera@gmail.com>
Fri, 1 Oct 2021 00:56:59 +0000 (03:56 +0300)
Allow to modify the ipset option in the dhcp.dnsmasq config.
This makes possible to populate IP sets with dnsmasq.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index b49040b6a0d9993d7826b889fe69b261019c82df..d7f691078725191b11189b90bad1eec1a2190855 100644 (file)
@@ -289,6 +289,12 @@ return view.extend({
                o.optional = true;
                o.placeholder = '/router.local/192.168.0.1';
 
+               o = s.taboption('general', form.DynamicList, 'ipset',
+                       _('IP sets'),
+                       _('List of IP sets to populate with the specified domain IPs.'));
+               o.optional = true;
+               o.placeholder = '/example.org/ipset,ipset6';
+
                o = s.taboption('general', form.Flag, 'rebind_protection',
                        _('Rebind protection'),
                        _('Discard upstream RFC1918 responses.'));