#2559: Unresolved ServerIP causes disconnect

This commit is contained in:
md_5 2018-12-08 09:56:34 +11:00
parent 378aaadb68
commit afef0ec1fe

View File

@ -431,7 +431,7 @@ public class DownstreamBridge extends PacketHandler
if ( subChannel.equals( "ServerIP" ) ) if ( subChannel.equals( "ServerIP" ) )
{ {
ServerInfo info = bungee.getServerInfo( in.readUTF() ); ServerInfo info = bungee.getServerInfo( in.readUTF() );
if ( info != null ) if ( info != null && !info.getAddress().isUnresolved() )
{ {
out.writeUTF( "ServerIP" ); out.writeUTF( "ServerIP" );
out.writeUTF( info.getName() ); out.writeUTF( info.getName() );