luci-mod-network: Add Address parameter in DHCP 3265/head
authorNajdanovic Ivan <najdanovicivan@gmail.com>
Tue, 5 Nov 2019 18:06:02 +0000 (19:06 +0100)
committerNajdanovic Ivan <najdanovicivan@gmail.com>
Fri, 17 Jan 2020 00:33:40 +0000 (01:33 +0100)
Address is very useful in dnsmasq. I don't see a reason why we should not have it in the form

Signed-off-by: Najdanovic Ivan <najdanovicivan@gmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index d7620e7f4780ef1d658ecbf7f4bd2c0ff3cdf9ff..540e9f8eb1e9d93f5c7540505ffd8ff6cb6c3582 100644 (file)
@@ -186,6 +186,13 @@ return L.view.extend({
                o.placeholder = '/example.org/10.1.2.3';
 
 
+               o = s.taboption('general', form.DynamicList, 'address', _('Addresses'),
+                       _('List of domains to force to an IP address.'));
+               
+               o.optional = true;
+               o.placeholder = '/router.local/192.168.0.1';
+
+
                o = s.taboption('general', form.Flag, 'rebind_protection',
                        _('Rebind protection'),
                        _('Discard upstream RFC1918 responses'));