From 65dc14592d48af3b3e9c19e5bf49cf51dbf9b6fd Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Sun, 27 Jun 2021 19:44:17 +0200 Subject: [PATCH] Use device instead of ifname for mptcp --- luci-app-mptcp/luasrc/controller/mptcp.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/luci-app-mptcp/luasrc/controller/mptcp.lua b/luci-app-mptcp/luasrc/controller/mptcp.lua index 249179514..33f39fcc6 100644 --- a/luci-app-mptcp/luasrc/controller/mptcp.lua +++ b/luci-app-mptcp/luasrc/controller/mptcp.lua @@ -63,7 +63,10 @@ function multipath_bandwidth() local label = s["label"] local dev = get_device(intname) if dev == "" then - dev = get_device(s["ifname"]) + 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