Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
olamy committed Jan 24, 2024
1 parent 953af33 commit e7fe9e3
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import java.net.InetAddress;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.HashMap;
Expand Down Expand Up @@ -86,8 +87,8 @@ public class GitReadSaveTest extends PipelineBaseTest {
private final Logger logger = Logger.getLogger(getClass().getName());

private SSHServer sshd;
private static IP_ADDRESS = InetAddress.getLoopbackAddress().getHostAddress();

private static String IP_ADDRESS = InetAddress.getLoopbackAddress().getHostAddress();

public GitReadSaveTest() {
}
Expand Down Expand Up @@ -195,7 +196,7 @@ private void startSSH(@Nullable User u) throws Exception {
sshd.start();
}
}

private String getAddress() {
return Boolean.getBoolean("java.net.preferIPv6Addresses") ? String.format("[%s]", IP_ADDRESS) : IP_ADDRESS;
}
Expand Down

0 comments on commit e7fe9e3

Please sign in to comment.