summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-10-16 09:34:28 +0200
committerFlorian Eckert <fe@dev.tdt.de>2018-11-14 09:15:46 +0100
commit29ab12650c2118362e2aeb0c2eaf5433b63ee617 (patch)
treedd5f9324f1af3d45fd0be653f0cb141c3a5a02e6 /applications
parentfc1e2c53b9c6d80e8632c11f7378dcc76b03a5b9 (diff)
luci-app-mwan3: rename variable in globalsconfig.lua
Name variables as the options name in uci. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua
index dba1998fd..f8dd741fb 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua
@@ -3,23 +3,24 @@
local net = require "luci.model.network".init()
-local s, m, n, mask
+local s, m, local_source, mask
m = Map("mwan3", translate("MWAN - Globals"))
s = m:section(NamedSection, "globals", "globals", nil)
-n = s:option(ListValue, "local_source",
+
+local_source = s:option(ListValue, "local_source",
translate("Local source interface"),
translate("Use the IP address of this interface as source IP " ..
"address for traffic initiated by the router itself"))
-n:value("none")
-n.default = "none"
+local_source:value("none")
+local_source.default = "none"
for _, net in ipairs(net:get_networks()) do
if net:name() ~= "loopback" then
- n:value(net:name())
+ local_source:value(net:name())
end
end
-n.rmempty = false
+local_source.rmempty = false
mask = s:option(
Value,