projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Fixed ffluci.util.trim, ffluci.util.split
[project/luci.git]
/
module
/
public-core
/
src
/
view
/
public_status
/
index.htm
diff --git
a/module/public-core/src/view/public_status/index.htm
b/module/public-core/src/view/public_status/index.htm
index d81125de25371aa18b1282d909d52f7f0fc89211..38133310780a7ac534b218705ccbc947374c0336 100644
(file)
--- a/
module/public-core/src/view/public_status/index.htm
+++ b/
module/public-core/src/view/public_status/index.htm
@@
-63,9
+63,12
@@
<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>