From af9f09310446b226d25622d6fc63787e49d80e78 Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Mon, 28 Sep 2015 00:49:47 +0100 Subject: [PATCH] luci-mod-admin-full: fix dnsmasq no-hosts/addn-hosts options no-hosts does not disable addn-hosts. Signed-off-by: Oliver Middleton (cherry picked from commit 0857aaa28b79c9ede1029aa9ce3160e92473f4d7) --- .../luasrc/model/cbi/admin_network/dhcp.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 997a9274d..7141e3c55 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", -- 2.25.1