* Minor bugfixes
[project/luci.git] / module / public-core / src / view / public_status / routes.htm
index 156a033..cd694d3 100644 (file)
 local routes = ffluci.sys.net.routes()
 
 -- UGLY hack is UGLY
-local be = (routes[1] and routes[1].Mask:sub(-2) == "00")
+if routes[1] and routes[1].Gateway:sub(-2) == "00" then
+       local be = true
+else
+       local be = false
+end
 
 for i, r in pairs(routes) do
 %>