Set local address to listener address, closes #337
This commit is contained in:
parent
a48ef137bd
commit
57793e93f0
@ -176,6 +176,7 @@ public final class UserConnection implements ProxiedPlayer
|
|||||||
ch.pipeline().get( HandlerBoss.class ).setHandler( new ServerConnector( bungee, UserConnection.this, target ) );
|
ch.pipeline().get( HandlerBoss.class ).setHandler( new ServerConnector( bungee, UserConnection.this, target ) );
|
||||||
}
|
}
|
||||||
} )
|
} )
|
||||||
|
.localAddress( getPendingConnection().getListener().getHost() )
|
||||||
.option( ChannelOption.CONNECT_TIMEOUT_MILLIS, 5000 ) // TODO: Configurable
|
.option( ChannelOption.CONNECT_TIMEOUT_MILLIS, 5000 ) // TODO: Configurable
|
||||||
.remoteAddress( target.getAddress() )
|
.remoteAddress( target.getAddress() )
|
||||||
.connect().addListener( new ChannelFutureListener()
|
.connect().addListener( new ChannelFutureListener()
|
||||||
|
Loading…
Reference in New Issue
Block a user