From 53e66da926896cb4c93cc90c842260bf61c93694 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Fri, 8 Nov 2024 16:39:19 +0100 Subject: [PATCH] luci-mod-network: dhcp; implement ignore_hosts_dir dnsmasq setting Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/view/network/dhcp.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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') + '
' + + _('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; -- 2.30.2