Debug: proxy connections

This commit is contained in:
M66B
2023-12-02 12:39:00 +01:00
parent af9fb287cf
commit 47ec1ade23
4 changed files with 36 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ public class Whois {
}
static String get(String domain, String host, int port) throws IOException {
Socket socket = new Socket();
Socket socket = ConnectionHelper.getSocket(host, port);
socket.connect(new InetSocketAddress(host, port), WHOIS_TIMEOUT);
try {
byte[] request = (domain + "\r\n").getBytes(StandardCharsets.UTF_8);