* Fixed ffluci.util.trim, ffluci.util.split
[project/luci.git] / module / public-core / src / view / public_status / index.htm
index d81125de25371aa18b1282d909d52f7f0fc89211..38133310780a7ac534b218705ccbc947374c0336 100644 (file)
 <th><%:metric Metrik%></th>
 <th><%:iface Schnittstelle%></th>
 </tr>
 <th><%:metric Metrik%></th>
 <th><%:iface Schnittstelle%></th>
 </tr>
-<% for i, rt in pairs(routes) do%>
+<%
+local be = (routes[1] and routes[1].Mask:sub(-2) == "00")
+for i, rt in pairs(routes) do
+%>
 <tr>
 <tr>
-<td><%=rt.Gateway%></th>
+<td><%=ffluci.sys.net.hexip4(rt.Gateway, be)%></th>
 <td><%=rt.Metric%></th>
 <td><%=rt.Iface%></th>
 </tr>
 <td><%=rt.Metric%></th>
 <td><%=rt.Iface%></th>
 </tr>