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)
committerHannu Nyman <hannu.nyman@iki.fi>
Mon, 28 Sep 2015 09:25:42 +0000 (12:25 +0300)
no-hosts does not disable addn-hosts.

Signed-off-by: Oliver Middleton <olliemail27@gmail.com>
(cherry picked from commit 0857aaa28b79c9ede1029aa9ce3160e92473f4d7)

modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua

index 997a9274d2a0222cfc7ad1f5fa2cd50f6900f1a9..7141e3c55d1002aa5fef30ecb19ded02ebf44067 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",