调整上传客服头像接口

This commit is contained in:
jinyu
2016-01-09 19:33:30 +08:00
parent 3f0a120047
commit c0f0705519
4 changed files with 36 additions and 33 deletions
@@ -107,11 +107,8 @@ public class Netty4HttpClient extends AbstractHttpClient {
}
}
};
InetSocketAddress address = new InetSocketAddress(
InetSocketAddress address = useProxy ? (InetSocketAddress) params.getProxy().address() : new InetSocketAddress(
InetAddress.getByName(uri.getHost()), getPort(uri));
if (useProxy) {
address = (InetSocketAddress) params.getProxy().address();
}
bootstrap.connect(address).syncUninterruptibly()
.addListener(listener);
response = future.get();