diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2018-04-10 17:36:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 17:36:29 +0300 |
commit | d42ce28e20da67c4ee33af36777e821f8664f2e3 (patch) | |
tree | 01ea60458048166718f629ed6d3f07b1c7cf4478 /modules | |
parent | 2b516423a0eb14882344faf0de46215e34c5c248 (diff) | |
parent | fbeea4ee33c877ce7d9412d0b98920bbb42466a4 (diff) |
Merge pull request #1742 from fantom-x/dhcp_cachesize_max
luci-mod-admin-full: limit dns cachesize to 10000
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/dhcp.lua | 4 |
1 files changed, 2 insertions, 2 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 d298480408..fbde431df8 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 @@ -214,9 +214,9 @@ cq.placeholder = 150 cs = s:taboption("advanced", Value, "cachesize", translate("Size of DNS query cache"), - translate("Maximum number of cached DNS entries")) + translate("Number of cached DNS entries (max is 10000, 0 is no caching)")) cs.optional = true -cs.datatype = "uinteger" +cs.datatype = "range(0,10000)" cs.placeholder = 150 s:taboption("tftp", Flag, "enable_tftp", |