X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fadmin-full%2Fluasrc%2Fview%2Fadmin_status%2Fconntrack.htm;h=2697c1cda38238df94b6630e9e95a85f79bf7e25;hp=d21faf7043fa2856d74bc23d04952841424ab861;hb=026945ae09515980f972228442c857e1f9cb4f7f;hpb=637e3cd0e38eb1d700be02384ab37b1a3056bf3b diff --git a/modules/admin-full/luasrc/view/admin_status/conntrack.htm b/modules/admin-full/luasrc/view/admin_status/conntrack.htm index d21faf704..2697c1cda 100644 --- a/modules/admin-full/luasrc/view/admin_status/conntrack.htm +++ b/modules/admin-full/luasrc/view/admin_status/conntrack.htm @@ -1,7 +1,7 @@ <%# LuCI - Lua Configuration Interface Copyright 2008-2009 Steven Barth -Copyright 2008-2009 Jo-Philipp Wich +Copyright 2008-2011 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -61,8 +61,16 @@ $Id$ <%=c.layer3:upper()%> <%=c.layer4:upper()%> - <%=c.src%> - <%=c.dst%> + <%= + c.layer3 == "ipv6" + and "[%s]:%d" %{ c.src, c.sport } + or "%s:%d" %{ c.src, c.sport } + %> + <%= + c.layer3 == "ipv6" + and "[%s]:%d" %{ c.dst, c.dport } + or "%s:%d" %{ c.dst, c.dport } + %> <% style = not style; end) %> @@ -70,6 +78,5 @@ $Id$
- -<%+footer%> +<%+footer%>