luci-app-unbound: add root zone file cache option 1839/head
authorEric Luehrsen <ericluehrsen@hotmail.com>
Tue, 29 May 2018 04:14:00 +0000 (00:14 -0400)
committerEric Luehrsen <ericluehrsen@hotmail.com>
Tue, 29 May 2018 04:14:00 +0000 (00:14 -0400)
Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua

index a2706ffa6cbf7f4acbf954dccc5dba2f86ee6c2a..256bbb83925acb776caa35a08175326a51c444ae 100644 (file)
@@ -9,7 +9,7 @@ local rlh, rpv, vld, nvd, eds, prt, tlm
 local ctl, dlk, dom, dty, lfq, wfq, exa
 local dp6, d64, pfx, qry, qrs
 local pro, tgr, rsc, rsn, ag2, stt
-local rpn, din, dfw
+local rpn, din, dfw, ath
 local ucl = luci.model.uci.cursor()
 local valman = ucl:get_first("unbound", "unbound", "manual_conf")
 
@@ -241,6 +241,10 @@ if valman ~= "1" then
   qrs.rmempty = false
   qrs:depends({ query_minimize = true })
 
+  ath = s1:taboption("resource", Flag, "prefetch_root", translate("Prefetch Root:"),
+    translate("Obtain complete root zone files and install in auth-zone: clause"))
+  ath.rmempty = false
+
   eds = s1:taboption("resource", Value, "edns_size", translate("EDNS Size:"),
     translate("Limit extended DNS packet size"))
   eds.datatype = "and(uinteger,min(512),max(4096))"