6632169: HttpClient and HttpsClient should not try to reverse lookup IP address of a proxy server
authorchegar
Mon, 22 Mar 2010 11:55:54 +0000
changeset 5160 c0e0c9a9d338
parent 5159 55d38eeb1e33
child 5161 bad56b1f38fb
child 5194 ba7f04720557
6632169: HttpClient and HttpsClient should not try to reverse lookup IP address of a proxy server Reviewed-by: michaelm
jdk/src/share/classes/sun/net/www/protocol/https/HttpsClient.java
--- a/jdk/src/share/classes/sun/net/www/protocol/https/HttpsClient.java	Fri Mar 19 13:07:42 2010 +0000
+++ b/jdk/src/share/classes/sun/net/www/protocol/https/HttpsClient.java	Mon Mar 22 11:55:54 2010 +0000
@@ -630,7 +630,7 @@
         if (!needsTunneling()) {
             return null;
         } else {
-            return ((InetSocketAddress)proxy.address()).getHostName();
+            return super.getProxyHostUsed();
         }
     }