From f77384d32e587e60ecc40941351dca1c6067a91c Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 11 Jan 2019 17:51:29 -0500 Subject: [PATCH] Ensure that Velocity will always resolve DNS names for HTTP async. --- .../com/velocitypowered/proxy/network/http/NettyHttpClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/network/http/NettyHttpClient.java b/proxy/src/main/java/com/velocitypowered/proxy/network/http/NettyHttpClient.java index 3859aefbb..7938bb3b6 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/network/http/NettyHttpClient.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/network/http/NettyHttpClient.java @@ -84,7 +84,7 @@ public class NettyHttpClient { } CompletableFuture reply = new CompletableFuture<>(); - InetSocketAddress address = new InetSocketAddress(host, port); + InetSocketAddress address = InetSocketAddress.createUnresolved(host, port); poolMap.get(address) .acquire() .addListener(future -> {