We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 449fe78 commit 36f77d0Copy full SHA for 36f77d0
plugins/src/test/java/opengrok/auth/plugin/LdapServerTest.java
@@ -80,7 +80,7 @@ public void testSetGetUsername() {
80
@Test
81
public void testIsReachable() throws IOException, InterruptedException, URISyntaxException {
82
// Start simple TCP server on test port.
83
- InetAddress localhostAddr = InetAddress.getLocalHost();
+ InetAddress localhostAddr = InetAddress.getLoopbackAddress();
84
try (ServerSocket serverSocket = new ServerSocket(0, 1, localhostAddr)) {
85
Thread thread = new Thread(() -> {
86
try {
0 commit comments