This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new 6198386  [CXF-7671]should avoid reverse dns resolution in 
AsyncHTTPConduit for the proxy host address
6198386 is described below

commit 61983861fe4cb26f5b9c4c6d4ca5e85c10cbd34b
Author: Freeman Fang <freeman.f...@gmail.com>
AuthorDate: Thu Mar 8 11:22:06 2018 +0800

    [CXF-7671]should avoid reverse dns resolution in AsyncHTTPConduit for the 
proxy host address
---
 .../org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java
 
b/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java
index d98728b..e343e87 100755
--- 
a/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java
+++ 
b/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/AsyncHTTPConduit.java
@@ -224,7 +224,7 @@ public class AsyncHTTPConduit extends 
URLConnectionHTTPConduit {
         Proxy p = proxyFactory.createProxy(csPolicy, uri);
         if (p != null && p.type() != Proxy.Type.DIRECT) {
             InetSocketAddress isa = (InetSocketAddress)p.address();
-            HttpHost proxy = new HttpHost(isa.getHostName(), isa.getPort());
+            HttpHost proxy = new HttpHost(isa.getHostString(), isa.getPort());
             b.setProxy(proxy);
         }
         e.setConfig(b.build());

-- 
To stop receiving notification emails like this one, please contact
ff...@apache.org.

Reply via email to