From 6a0fc5e575bb26924ac072b2aa86d3596c2b30e7 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 19 Nov 2019 18:34:44 +0100 Subject: [PATCH] Fix luci MPTCP bandwidth --- luci-app-mptcp/luasrc/controller/mptcp.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/luci-app-mptcp/luasrc/controller/mptcp.lua b/luci-app-mptcp/luasrc/controller/mptcp.lua index e24ccff1a..869745bc9 100644 --- a/luci-app-mptcp/luasrc/controller/mptcp.lua +++ b/luci-app-mptcp/luasrc/controller/mptcp.lua @@ -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