Merge pull request #1742 from fantom-x/dhcp_cachesize_max

luci-mod-admin-full: limit dns cachesize to 10000
This commit is contained in:
Hannu Nyman 2018-04-10 17:36:29 +03:00 committed by GitHub
commit d42ce28e20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,9 +214,9 @@ cq.placeholder = 150
cs = s:taboption("advanced", Value, "cachesize", cs = s:taboption("advanced", Value, "cachesize",
translate("Size of DNS query cache"), 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.optional = true
cs.datatype = "uinteger" cs.datatype = "range(0,10000)"
cs.placeholder = 150 cs.placeholder = 150
s:taboption("tftp", Flag, "enable_tftp", s:taboption("tftp", Flag, "enable_tftp",