summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-unbound/luasrc/model/cbi/unbound
diff options
context:
space:
mode:
authorEric Luehrsen <ericluehrsen@gmail.com>2021-02-28 21:25:44 -0500
committerEric Luehrsen <ericluehrsen@gmail.com>2021-03-06 21:07:55 -0500
commit23feca7181a4efe48761d37268558ca40119037b (patch)
tree427699cfa2b050f527bf8723e238c2fcd22147ce /applications/luci-app-unbound/luasrc/model/cbi/unbound
parente8404d8b06a80081fb2aa4e67b09dac2cd341243 (diff)
luci-app-unbound: fix interface selections to match UCI
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
Diffstat (limited to 'applications/luci-app-unbound/luasrc/model/cbi/unbound')
-rw-r--r--applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua23
1 files changed, 21 insertions, 2 deletions
diff --git a/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua b/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua
index 206d7e6da1..a1b3661536 100644
--- a/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua
+++ b/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua
@@ -8,7 +8,8 @@ local ena, mcf, lci, lsv
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 pro, rsc, rsn, ag2, stt
+local tgr, ifc, wfc
local rpn, din, ath
local ut = require "luci.util"
@@ -125,7 +126,25 @@ if (valman == "0") then
ag2:value("24", "24")
ag2:value("99", "99 ("..translate("never")..")")
- tgr = s1:taboption("advanced", Value, "trigger_interface",
+ ifc = s1:taboption("advanced", Value, "iface_lan",
+ translate("LAN Networks"),
+ translate("Networks to consider LAN (served) beyond those served by DHCP"))
+ ifc.template = "cbi/network_netlist"
+ ifc.widget = "checkbox"
+ ifc.rmempty = true
+ ifc.cast = "string"
+ ifc.nocreate = true
+
+ wfc = s1:taboption("advanced", Value, "iface_wan",
+ translate("WAN Networks"),
+ translate("Networks to consider WAN (unserved)"))
+ wfc.template = "cbi/network_netlist"
+ wfc.widget = "checkbox"
+ wfc.rmempty = true
+ wfc.cast = "string"
+ wfc.nocreate = true
+
+ tgr = s1:taboption("advanced", Value, "iface_trig",
translate("Trigger Networks"),
translate("Networks that may trigger Unbound to reload (avoid wan6)"))
tgr.template = "cbi/network_netlist"