From: Oliver Middleton Date: Sun, 27 Sep 2015 23:49:47 +0000 (+0100) Subject: luci-mod-admin-full: fix dnsmasq no-hosts/addn-hosts options X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F492%2Fhead;p=project%2Fluci.git luci-mod-admin-full: fix dnsmasq no-hosts/addn-hosts options no-hosts does not disable addn-hosts. Signed-off-by: Oliver Middleton --- diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua index 49103a8113..4dc52ada06 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua @@ -51,13 +51,10 @@ rf.optional = true s:taboption("files", Flag, "nohosts", - translate("Ignore Hosts files")).optional = true + translate("Ignore /etc/hosts")).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",