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

index fa991db41d6f85cf9fb225748381beb31c44b5e1,540e9f8eb1e9d93f5c7540505ffd8ff6cb6c3582..37cc29f32a25b11f6bab0b3c04b2a1be6369c1a3
@@@ -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'));