luci-app-mwan3: remove deprecated local_source option
Remove deprecated local_source option which is not supported/needed anymore. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
6ec540c46d
commit
8938f53f1b
1 changed files with 1 additions and 14 deletions
|
@ -3,25 +3,12 @@
|
||||||
|
|
||||||
local net = require "luci.model.network".init()
|
local net = require "luci.model.network".init()
|
||||||
|
|
||||||
local s, m, local_source, mask, rtmon, rtlookup
|
local s, m, mask, rtmon, rtlookup
|
||||||
|
|
||||||
m = Map("mwan3", translate("MWAN - Globals"))
|
m = Map("mwan3", translate("MWAN - Globals"))
|
||||||
|
|
||||||
s = m:section(NamedSection, "globals", "globals", nil)
|
s = m:section(NamedSection, "globals", "globals", nil)
|
||||||
|
|
||||||
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"))
|
|
||||||
local_source:value("none")
|
|
||||||
local_source.default = "none"
|
|
||||||
for _, net in ipairs(net:get_networks()) do
|
|
||||||
if net:name() ~= "loopback" then
|
|
||||||
local_source:value(net:name())
|
|
||||||
end
|
|
||||||
end
|
|
||||||
local_source.rmempty = false
|
|
||||||
|
|
||||||
mask = s:option(
|
mask = s:option(
|
||||||
Value,
|
Value,
|
||||||
"mmx_mask",
|
"mmx_mask",
|
||||||
|
|
Loading…
Reference in a new issue