OSDN Git Service

Merge pull request #3265 from najdanovicivan/patch-2
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 14 Sep 2020 13:34:37 +0000 (15:34 +0200)
committerGitHub <noreply@github.com>
Mon, 14 Sep 2020 13:34:37 +0000 (15:34 +0200)
luci-mod-network: add address parameter in DHCP for dnsmasq

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

@@@ -279,9 -184,15 +279,16 @@@ return view.extend(
  
                o.optional = true;
                o.placeholder = '/example.org/10.1.2.3';
 +              o.validate = validateServerSpec;
  
  
+               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'));