Skip to content

Commit c27e35d

Browse files
committed
Added use of InetAddress. Relates to github #2026
1 parent 8046a43 commit c27e35d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/src/main/java/org/bouncycastle/test/est/ESTServerUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.io.File;
44
import java.io.IOException;
5+
import java.net.InetAddress;
56
import java.net.Socket;
67
import java.util.Arrays;
78
import java.util.List;
@@ -94,7 +95,7 @@ public static void waitForSocket(int port)
9495
try
9596
{
9697
Thread.sleep(100);
97-
sock = new Socket("127.0.0.1", port);
98+
sock = new Socket(InetAddress.getLoopbackAddress(), port);
9899
break;
99100
}
100101
catch (Exception ex)

0 commit comments

Comments
 (0)