Skip to content

Commit

Permalink
Fix for the Bungee timeout issue many are facing.
Browse files Browse the repository at this point in the history
This simple but mandatory commit prevents that the hostname of the server is resolved to its IP which can cause massive network latencies.
  • Loading branch information
paulzhng committed Jun 11, 2020
1 parent 197f908 commit 2ca8234
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public String getRawPayload() {

@Override
public void modifyOriginalPacket(String hostname) throws Exception {
InetSocketAddress virtualHost = new InetSocketAddress(hostname, handshake.getPort());
InetSocketAddress virtualHost = InetSocketAddress.createUnresolved(hostname, handshake.getPort());
try {
ReflectionUtils.setFinalField(pendingConnection, "virtualHost", virtualHost);
} catch (Exception ex) {
Expand Down

0 comments on commit 2ca8234

Please sign in to comment.