diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2015-09-28 12:01:56 +0300 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2015-09-28 12:01:56 +0300 |
commit | db6e2282505e2108517165656a1d3b794498438a (patch) | |
tree | 412363b9cb2688c321ca9bcdf876b35a02fc3a70 | |
parent | 64bfe908e36d6f01bae8e3c58c8584afd509aba7 (diff) | |
parent | 0857aaa28b79c9ede1029aa9ce3160e92473f4d7 (diff) |
Merge pull request #492 from ollie27/nohosts
luci-mod-admin-full: fix dnsmasq no-hosts/addn-hosts options
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua | 9 |
1 files 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 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 <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", |