Skip to content

Commit 87473b0

Browse files
author
Stephane Landelle
committed
Use getHostName instead of getHostString for JDK6 compat
1 parent a2211de commit 87473b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/org/asynchttpclient/util/ProxyUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public ProxyServer select(URI uri) {
208208
log.warn("Don't know how to connect to address " + proxy.address());
209209
} else {
210210
InetSocketAddress address = (InetSocketAddress) proxy.address();
211-
return new ProxyServer(Protocol.HTTP, address.getHostString(), address.getPort());
211+
return new ProxyServer(Protocol.HTTP, address.getHostName(), address.getPort());
212212
}
213213
case DIRECT:
214214
return null;

0 commit comments

Comments
 (0)