modules/admin-full: properly display interface stats for networks with underscores
[project/luci.git] / modules / admin-full / luasrc / controller / admin / network.lua
index badb696..bed96d8 100644 (file)
@@ -67,7 +67,7 @@ function index()
                        local wnet
                        for _, wnet in ipairs(wdev:get_wifinets()) do
                                entry(
-                                       {"admin", "network", "wireless", wnet.netid},
+                                       {"admin", "network", "wireless", wnet:id()},
                                        alias("admin", "network", "wireless"),
                                        wdev:name() .. ": " .. wnet:shortname()
                                )
@@ -207,7 +207,7 @@ function iface_status()
        local rv   = { }
 
        local iface
-       for iface in path[#path]:gmatch("[%w%.%-]+") do
+       for iface in path[#path]:gmatch("[%w%.%-_]+") do
                local net = netm:get_network(iface)
                if net then
                        local info