mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-26 18:47:42 +01:00
Lazy init vhost address.
This commit is contained in:
parent
00db351dd6
commit
9226df86f0
@ -210,7 +210,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|||||||
handshake.setHost( handshake.getHost().substring( 0, handshake.getHost().length() - 1 ) );
|
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.getLogger().log( Level.INFO, "{0} has connected", this );
|
||||||
|
|
||||||
bungee.getPluginManager().callEvent( new PlayerHandshakeEvent( InitialHandler.this, handshake ) );
|
bungee.getPluginManager().callEvent( new PlayerHandshakeEvent( InitialHandler.this, handshake ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user