From: Najdanovic Ivan Date: Tue, 5 Nov 2019 18:06:02 +0000 (+0100) Subject: luci-mod-network: Add Address parameter in DHCP X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8463929378ad3e49f68ef958f6422354304395cb;p=project%2Fluci.git luci-mod-network: Add Address parameter in DHCP 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 --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index d7620e7f47..540e9f8eb1 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -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'));