luci-mod-network: dhcp; implement ignore_hosts_dir dnsmasq setting
authorPaul Donald <redacted>
Fri, 8 Nov 2024 15:39:19 +0000 (16:39 +0100)
committerPaul Donald <redacted>
Thu, 14 Nov 2024 20:02:49 +0000 (21:02 +0100)
Signed-off-by: Paul Donald <redacted>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index 2612467c8bfba26583419437055fcdc942210b2c..16db7ed0ef3fc3ef30c61c6561576d71e063b900 100644 (file)
@@ -646,8 +646,15 @@ return view.extend({
                        _('Query upstream resolvers in the order they appear in the resolv file.'));
                o.optional = true;
 
+               o = s.taboption('files', form.Flag, 'ignore_hosts_dir',
+                       _('Ignore hosts files directory'),
+                       _('On: use instance specific hosts file only') + '<br/>' +
+                       _('Off: use all files in the directory including the instance specific hosts file')
+               );
+               o.optional = true;
+
                o = s.taboption('files', form.Flag, 'nohosts',
-                       customi18n(_('Ignore {etc_hosts}') )
+                       customi18n(_('Ignore {etc_hosts} file') )
                );
                o.optional = true;
 
git clone https://git.99rst.org/PROJECT