luci-mod-admin-full: fix dnsmasq no-hosts/addn-hosts options
authorOliver Middleton <olliemail27@gmail.com>
Sun, 27 Sep 2015 23:49:47 +0000 (00:49 +0100)
committerOliver Middleton <olliemail27@gmail.com>
Mon, 28 Sep 2015 00:12:15 +0000 (01:12 +0100)
no-hosts does not disable addn-hosts.

Signed-off-by: Oliver Middleton <olliemail27@gmail.com>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua

index 49103a811394932564e66f3ac7bcb686d82a76d2..4dc52ada06673829a363ad3a90504f61bdadbc47 100644 (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",