1
0
Fork 0
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:
Ycarus 2019-01-06 19:13:23 +01:00
parent 5d2703b041
commit 95fb1bc0c0

View file

@ -26,13 +26,13 @@
local dev
local devices = { "all" }
for _, dev in luci.util.vspairs(luci.sys.net.devices()) do
if dev ~= "lo" and not ntm:ignore_interface(dev) then
local multipath = uci:get("network", dev, "multipath")
for _, dev in ipairs(ntm:get_networks()) do
--if dev ~= "lo" and not ntm:ignore_interface(dev) then
local multipath = uci:get("network", dev:name(), "multipath")
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
local curdev = luci.http.formvalue("dev") or "all"