From: Paul Donald Date: Fri, 8 Nov 2024 15:39:19 +0000 (+0100) Subject: luci-mod-network: dhcp; implement ignore_hosts_dir dnsmasq setting X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=53e66da926896cb4c93cc90c842260bf61c93694;p=openwrt-luci.git luci-mod-network: dhcp; implement ignore_hosts_dir dnsmasq setting Signed-off-by: Paul Donald --- 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;