* Minor bugfixes
[project/luci.git] / module / public-core / src / view / public_status / routes.htm
index 156a0336fce77f9a3aec905cfb390780a270a8fa..cd694d32461055763c13b3ccb8fb4bd7f42fe2bc 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
 %>