diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/public-core/src/controller/public/status.lua | 1 | ||||
-rw-r--r-- | module/public-core/src/view/public_status/index.htm | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/module/public-core/src/controller/public/status.lua b/module/public-core/src/controller/public/status.lua index a786eb2d7e..8d2f7a303f 100644 --- a/module/public-core/src/controller/public/status.lua +++ b/module/public-core/src/controller/public/status.lua @@ -10,7 +10,6 @@ function action_index() data.routes = {} for i, r in pairs(ffluci.sys.net.routes()) do if r.Destination == "00000000" then - r.Gateway = ffluci.sys.net.hexip4(r.Gateway) table.insert(data.routes, r) end end diff --git a/module/public-core/src/view/public_status/index.htm b/module/public-core/src/view/public_status/index.htm index d81125de25..3813331078 100644 --- 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> -<% 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> -<td><%=rt.Gateway%></th> +<td><%=ffluci.sys.net.hexip4(rt.Gateway, be)%></th> <td><%=rt.Metric%></th> <td><%=rt.Iface%></th> </tr> |