From 95fb1bc0c07f37206d8dabee520d5bab2f8ab49c Mon Sep 17 00:00:00 2001 From: Ycarus Date: Sun, 6 Jan 2019 19:13:23 +0100 Subject: [PATCH] Fix mptcp bp --- luci-app-mptcp/luasrc/view/mptcp/multipath.htm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/luci-app-mptcp/luasrc/view/mptcp/multipath.htm b/luci-app-mptcp/luasrc/view/mptcp/multipath.htm index d6d92bb4d..858ec0046 100644 --- a/luci-app-mptcp/luasrc/view/mptcp/multipath.htm +++ b/luci-app-mptcp/luasrc/view/mptcp/multipath.htm @@ -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"