You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2018/04/27 17:34:07 UTC

[cxf] 04/05: [CXF-7671]should avoid reverse dns resolution in AsyncHTTPConduit for the proxy host address

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

dkulp pushed a commit to branch 3.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 79bcc1bd5f4c695596cb1d2e2e3a4a5396427c8e
Author: Freeman Fang <fr...@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
    
    (cherry picked from commit 61983861fe4cb26f5b9c4c6d4ca5e85c10cbd34b)
---
 .../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 4b4b934..57af587 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
@@ -223,7 +223,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
dkulp@apache.org.