mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 06:22:49 +04:00
luci-mod-admin-full: fix dnsmasq no-hosts/addn-hosts options
no-hosts does not disable addn-hosts. Signed-off-by: Oliver Middleton <olliemail27@gmail.com>
This commit is contained in:
@@ -51,13 +51,10 @@ rf.optional = true
|
||||
|
||||
|
||||
s:taboption("files", Flag, "nohosts",
|
||||
translate("Ignore Hosts files")).optional = true
|
||||
translate("Ignore <code>/etc/hosts</code>")).optional = true
|
||||
|
||||
hf = s:taboption("files", DynamicList, "addnhosts",
|
||||
translate("Additional Hosts files"))
|
||||
|
||||
hf:depends("nohosts", "")
|
||||
hf.optional = true
|
||||
s:taboption("files", DynamicList, "addnhosts",
|
||||
translate("Additional Hosts files")).optional = true
|
||||
|
||||
|
||||
s:taboption("advanced", Flag, "boguspriv",
|
||||
|
||||
Reference in New Issue
Block a user