1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix luci MPTCP bandwidth

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-11-19 18:34:44 +01:00
parent 443374df8c
commit 6a0fc5e575

View file

@ -39,10 +39,7 @@ function multipath_bandwidth()
local uci = luci.model.uci.cursor()
uci:foreach("network", "interface", function(s)
local dev = s["ifname"] or ""
if dev == "" then
dev = get_device(s["ifname"])
end
local dev = get_device(s["ifname"])
if dev ~= "lo" and dev ~= "" then
local multipath = s["multipath"] or "off"
if multipath == "on" or multipath == "master" or multipath == "backup" or multipath == "handover" then