mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-30 22:24:18 +01:00
Connect via bound address - closes #337.
Blame JacobiCarter if this breaks
This commit is contained in:
parent
3f994a1c4c
commit
2a2c2717d5
@ -205,6 +205,7 @@ public final class UserConnection implements ProxiedPlayer
|
||||
.channel( NioSocketChannel.class )
|
||||
.group( BungeeCord.getInstance().eventLoops )
|
||||
.handler( initializer )
|
||||
.localAddress( getPendingConnection().getListener().getHost().getHostString(), 0 )
|
||||
.option( ChannelOption.CONNECT_TIMEOUT_MILLIS, 5000 ) // TODO: Configurable
|
||||
.remoteAddress( target.getAddress() )
|
||||
.connect().addListener( listener );
|
||||
|
Loading…
Reference in New Issue
Block a user