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"