Skip to content

Commit

Permalink
Fix #6860 IPv6 Format
Browse files Browse the repository at this point in the history
fix style

Signed-off-by: Greg Wilkins <gregw@webtide.com>
  • Loading branch information
gregw committed Sep 19, 2021
1 parent 11720f7 commit 38192fc
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -939,12 +939,13 @@ public boolean check(HttpServletRequest request, HttpServletResponse response)
assertEquals("8888", results.get(i++));
}


@Test
public void testIPv6() throws Exception
{
final ArrayList<String> results = new ArrayList<>();
final InetAddress local = Inet6Address.getByAddress("localIPv6", new byte[] {0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,8});
final InetAddress local = Inet6Address.getByAddress("localIPv6", new byte[]{
0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8
});
final InetSocketAddress localAddr = new InetSocketAddress(local, 32768);
_handler._checker = new RequestTester()
{
Expand Down Expand Up @@ -1015,8 +1016,6 @@ public boolean check(HttpServletRequest request, HttpServletResponse response)
assertEquals("0", results.get(i++));
}



@Test
public void testContent() throws Exception
{
Expand Down

0 comments on commit 38192fc

Please sign in to comment.