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 )
|
.channel( NioSocketChannel.class )
|
||||||
.group( BungeeCord.getInstance().eventLoops )
|
.group( BungeeCord.getInstance().eventLoops )
|
||||||
.handler( initializer )
|
.handler( initializer )
|
||||||
|
.localAddress( getPendingConnection().getListener().getHost().getHostString(), 0 )
|
||||||
.option( ChannelOption.CONNECT_TIMEOUT_MILLIS, 5000 ) // TODO: Configurable
|
.option( ChannelOption.CONNECT_TIMEOUT_MILLIS, 5000 ) // TODO: Configurable
|
||||||
.remoteAddress( target.getAddress() )
|
.remoteAddress( target.getAddress() )
|
||||||
.connect().addListener( listener );
|
.connect().addListener( listener );
|
||||||
|
Loading…
Reference in New Issue
Block a user