}
private ClientBootstrap createClientBootstrap(@Nullable HostAndPort socksProxyAddress)
{
if (socksProxyAddress != null) {
return new Socks4ClientBootstrap(channelFactory, toInetAddress(socksProxyAddress));
}
else {
return new ClientBootstrap(channelFactory);
}
}