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:
Oliver Middleton 2015-09-28 00:49:47 +01:00
parent 64bfe908e3
commit 0857aaa28b

View file

@ -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",