From afef0ec1fed04f2ecea9df5134cfac7505c341a1 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 8 Dec 2018 09:56:34 +1100 Subject: [PATCH] #2559: Unresolved ServerIP causes disconnect --- .../main/java/net/md_5/bungee/connection/DownstreamBridge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java index 22a5ac05..95a6f39f 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java @@ -431,7 +431,7 @@ public class DownstreamBridge extends PacketHandler if ( subChannel.equals( "ServerIP" ) ) { ServerInfo info = bungee.getServerInfo( in.readUTF() ); - if ( info != null ) + if ( info != null && !info.getAddress().isUnresolved() ) { out.writeUTF( "ServerIP" ); out.writeUTF( info.getName() );