luci-app-unbound: provide transparent defaults with documentation
Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
This commit is contained in:
parent
f6aec9fe21
commit
60ea5dc53f
1 changed files with 25 additions and 21 deletions
|
@ -100,15 +100,6 @@ if valman ~= "1" then
|
||||||
pfx.optional = true
|
pfx.optional = true
|
||||||
pfx:depends({ dns64 = true })
|
pfx:depends({ dns64 = true })
|
||||||
|
|
||||||
qry = s1:taboption("basic", Flag, "query_minimize", translate("Query Minimize:"),
|
|
||||||
translate("Break down query components for limited added privacy"))
|
|
||||||
qry.rmempty = false
|
|
||||||
|
|
||||||
qrs = s1:taboption("basic", Flag, "query_min_strict", translate("Strict Minimize:"),
|
|
||||||
translate("Strict version of 'query minimize' but it can break DNS"))
|
|
||||||
qrs.rmempty = false
|
|
||||||
qrs:depends({ query_minimize = true })
|
|
||||||
|
|
||||||
prt = s1:taboption("basic", Value, "listen_port", translate("Listening Port:"),
|
prt = s1:taboption("basic", Value, "listen_port", translate("Listening Port:"),
|
||||||
translate("Choose Unbounds listening port"))
|
translate("Choose Unbounds listening port"))
|
||||||
prt.datatype = "port"
|
prt.datatype = "port"
|
||||||
|
@ -216,27 +207,40 @@ if valman ~= "1" then
|
||||||
|
|
||||||
pro = s1:taboption("resource", ListValue, "protocol", translate("Recursion Protocol:"),
|
pro = s1:taboption("resource", ListValue, "protocol", translate("Recursion Protocol:"),
|
||||||
translate("Chose the protocol recursion queries leave on"))
|
translate("Chose the protocol recursion queries leave on"))
|
||||||
pro:value("mixed", translate("IP4 and IP6"))
|
pro:value("default", translate("Default"))
|
||||||
pro:value("ip6_prefer", translate("IP6 Preferred"))
|
|
||||||
pro:value("ip4_only", translate("IP4 Only"))
|
pro:value("ip4_only", translate("IP4 Only"))
|
||||||
pro:value("ip6_only", translate("IP6 Only"))
|
pro:value("ip6_only", translate("IP6 Only"))
|
||||||
|
pro:value("ip6_prefer", translate("IP6 Preferred"))
|
||||||
|
pro:value("mixed", translate("IP4 and IP6"))
|
||||||
pro.rmempty = false
|
pro.rmempty = false
|
||||||
|
|
||||||
rsn = s1:taboption("resource", ListValue, "recursion", translate("Recursion Strength:"),
|
|
||||||
translate("Recursion activity affects memory growth and CPU load"))
|
|
||||||
rsn:value("aggressive", translate("Aggressive"))
|
|
||||||
rsn:value("default", translate("Default"))
|
|
||||||
rsn:value("passive", translate("Passive"))
|
|
||||||
rsn.rmempty = false
|
|
||||||
|
|
||||||
rsc = s1:taboption("resource", ListValue, "resource", translate("Memory Resource:"),
|
rsc = s1:taboption("resource", ListValue, "resource", translate("Memory Resource:"),
|
||||||
translate("Use menu System/Processes to observe any memory growth"))
|
translate("Use menu System/Processes to observe any memory growth"))
|
||||||
rsc:value("large", translate("Large"))
|
rsc:value("default", translate("Default"))
|
||||||
rsc:value("medium", translate("Medium"))
|
|
||||||
rsc:value("small", translate("Small"))
|
|
||||||
rsc:value("tiny", translate("Tiny"))
|
rsc:value("tiny", translate("Tiny"))
|
||||||
|
rsc:value("small", translate("Small"))
|
||||||
|
rsc:value("medium", translate("Medium"))
|
||||||
|
rsc:value("large", translate("Large"))
|
||||||
rsc.rmempty = false
|
rsc.rmempty = false
|
||||||
|
|
||||||
|
rsn = s1:taboption("resource", ListValue, "recursion", translate("Recursion Strength:"),
|
||||||
|
translate("Recursion activity affects memory growth and CPU load"))
|
||||||
|
rsn:value("default", translate("Default"))
|
||||||
|
rsn:value("passive", translate("Passive"))
|
||||||
|
rsn:value("aggressive", translate("Aggressive"))
|
||||||
|
rsn.rmempty = false
|
||||||
|
|
||||||
|
qry = s1:taboption("resource", Flag, "query_minimize", translate("Query Minimize:"),
|
||||||
|
translate("Break down query components for limited added privacy"))
|
||||||
|
qry.rmempty = false
|
||||||
|
qry:depends({ recursion = "passive" })
|
||||||
|
qry:depends({ recursion = "aggressive" })
|
||||||
|
|
||||||
|
qrs = s1:taboption("resource", Flag, "query_min_strict", translate("Strict Minimize:"),
|
||||||
|
translate("Strict version of 'query minimize' but it can break DNS"))
|
||||||
|
qrs.rmempty = false
|
||||||
|
qrs:depends({ query_minimize = true })
|
||||||
|
|
||||||
eds = s1:taboption("resource", Value, "edns_size", translate("EDNS Size:"),
|
eds = s1:taboption("resource", Value, "edns_size", translate("EDNS Size:"),
|
||||||
translate("Limit extended DNS packet size"))
|
translate("Limit extended DNS packet size"))
|
||||||
eds.datatype = "and(uinteger,min(512),max(4096))"
|
eds.datatype = "and(uinteger,min(512),max(4096))"
|
||||||
|
|
Loading…
Reference in a new issue