1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +00:00

Use device instead of ifname for mptcp

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-06-27 19:44:17 +02:00
parent 0383e51b29
commit 65dc14592d

View file

@ -62,9 +62,12 @@ function multipath_bandwidth()
local intname = s[".name"]
local label = s["label"]
local dev = get_device(intname)
if dev == "" then
dev = get_device(s["device"])
if dev == "" then
dev = get_device(s["ifname"])
end
end
local multipath = s["multipath"] or ""
if dev ~= "lo" and dev ~= "" then
if multipath == "" then