Connect via bound address - closes #337.

Blame JacobiCarter if this breaks
This commit is contained in:
md_5 2013-05-19 18:14:24 +10:00
parent 3f994a1c4c
commit 2a2c2717d5

View File

@ -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 );