mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix mptcp bp
This commit is contained in:
parent
5d2703b041
commit
95fb1bc0c0
1 changed files with 5 additions and 5 deletions
|
@ -26,13 +26,13 @@
|
||||||
|
|
||||||
local dev
|
local dev
|
||||||
local devices = { "all" }
|
local devices = { "all" }
|
||||||
for _, dev in luci.util.vspairs(luci.sys.net.devices()) do
|
for _, dev in ipairs(ntm:get_networks()) do
|
||||||
if dev ~= "lo" and not ntm:ignore_interface(dev) then
|
--if dev ~= "lo" and not ntm:ignore_interface(dev) then
|
||||||
local multipath = uci:get("network", dev, "multipath")
|
local multipath = uci:get("network", dev:name(), "multipath")
|
||||||
if multipath == "on" or multipath == "master" or multipath == "backup" or multipath == "handover" then
|
if multipath == "on" or multipath == "master" or multipath == "backup" or multipath == "handover" then
|
||||||
devices[#devices+1] = dev
|
devices[#devices+1] = dev:name()
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
--end
|
||||||
end
|
end
|
||||||
|
|
||||||
local curdev = luci.http.formvalue("dev") or "all"
|
local curdev = luci.http.formvalue("dev") or "all"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue