Lazy init vhost address.

This commit is contained in:
md_5 2014-05-31 18:46:35 +10:00
parent 00db351dd6
commit 9226df86f0

View File

@ -210,7 +210,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
handshake.setHost( handshake.getHost().substring( 0, handshake.getHost().length() - 1 ) );
}
this.virtualHost = new InetSocketAddress( handshake.getHost(), handshake.getPort() );
this.virtualHost = InetSocketAddress.createUnresolved( handshake.getHost(), handshake.getPort() );
bungee.getLogger().log( Level.INFO, "{0} has connected", this );
bungee.getPluginManager().callEvent( new PlayerHandshakeEvent( InitialHandler.this, handshake ) );