Commit 3a21adbc by 徐高华

文件目录

parent 56269895
......@@ -273,10 +273,10 @@ public class HttpClient {
return map;
}
private static void setIp(org.apache.http.client.HttpClient client , byte[] b) {
private static void setIp(org.apache.http.client.HttpClient client , byte[] ip) {
try {
if(null != b) {
client.getParams().setParameter(ConnRouteParams.LOCAL_ADDRESS, InetAddress.getByAddress(b)) ;
if(null != ip) {
client.getParams().setParameter(ConnRouteParams.LOCAL_ADDRESS, InetAddress.getByAddress(ip)) ;
}
} catch (UnknownHostException e2) {
// TODO Auto-generated catch block
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment