modules/admin-full: properly display interface stats for networks with underscores
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 18 Mar 2011 16:50:18 +0000 (16:50 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 18 Mar 2011 16:50:18 +0000 (16:50 +0000)
modules/admin-full/luasrc/controller/admin/network.lua

index dd3468f..bed96d8 100644 (file)
@@ -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