summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-11-08 16:39:19 +0100
committerPaul Donald <newtwen+github@gmail.com>2024-11-14 21:02:49 +0100
commit53e66da926896cb4c93cc90c842260bf61c93694 (patch)
tree9cb147f4f637e6c88098c961f817c76f74616c55 /modules/luci-mod-network/htdocs/luci-static
parenta9e1685f6419432c5ce682895d44a2d14eb16fcc (diff)
luci-mod-network: dhcp; implement ignore_hosts_dir dnsmasq setting
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js9
1 files changed, 8 insertions, 1 deletions
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 2612467c8b..16db7ed0ef 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
@@ -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;