From bba585f063ccc1e483346c9b5625d4dcf84d6586 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 27 Apr 2008 16:12:24 +0000 Subject: * Added initial version of RPC info API * Fixed client splash --- module/public-core/src/view/public_status/index.htm | 11 +---------- module/public-core/src/view/public_status/routes.htm | 13 +++---------- 2 files changed, 4 insertions(+), 20 deletions(-) (limited to 'module/public-core') diff --git a/module/public-core/src/view/public_status/index.htm b/module/public-core/src/view/public_status/index.htm index 44c4ea7a76..be0b96888b 100644 --- a/module/public-core/src/view/public_status/index.htm +++ b/module/public-core/src/view/public_status/index.htm @@ -47,19 +47,10 @@ <%:iface Schnittstelle%> <% - --- UGLY hack is UGLY -if routes[1] and routes[1].Gateway:sub(-2) == "00" then - local be = true -else - local be = false -end - - for i, rt in pairs(routes) do %> -<%=ffluci.sys.net.hexip4(rt.Gateway, be)%> +<%=ffluci.sys.net.hexip4(rt.Gateway)%> <%=rt.Metric%> <%=rt.Iface%> diff --git a/module/public-core/src/view/public_status/routes.htm b/module/public-core/src/view/public_status/routes.htm index cd694d3246..85b02212d7 100644 --- a/module/public-core/src/view/public_status/routes.htm +++ b/module/public-core/src/view/public_status/routes.htm @@ -13,19 +13,12 @@ <% local routes = ffluci.sys.net.routes() --- UGLY hack is UGLY -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 %> -<%=ffluci.sys.net.hexip4(r.Destination, be)%> -<%=ffluci.sys.net.hexip4(r.Mask, be)%> -<%=ffluci.sys.net.hexip4(r.Gateway, be)%> +<%=ffluci.sys.net.hexip4(r.Destination)%> +<%=ffluci.sys.net.hexip4(r.Mask)%> +<%=ffluci.sys.net.hexip4(r.Gateway)%> <%=r.Metric%> <%=r.Iface%> -- cgit v1.2.3