修改设置代理的Bug。

修改设置代理的Bug。

Signed-off-by: Wang Zhengjie <wangzhengjie@tinkers.com.cn>
This commit is contained in:
Wang Zhengjie 2016-03-11 17:57:51 +08:00
parent 2c82ff416c
commit d756702bd8

View File

@ -33,7 +33,7 @@ public class JoddGetRequestExecutor implements RequestExecutor<String, String> {
if (httpProxy != null) {
ProxyInfo proxyInfoObj = new ProxyInfo(
ProxyInfo.ProxyType.HTTP,
httpProxy.getAddress().getHostAddress(),
httpProxy.getHostName(),
httpProxy.getPort(), "", "");
provider.useProxy(proxyInfoObj);
}