Skip to content

Commit b01e94f

Browse files
author
Stephane Landelle
committed
Target JDK7, use getHostString instead of getHostName, close AsyncHttpClient#672
1 parent 429cc63 commit b01e94f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/netty/src/main/java/org/asynchttpclient/providers/netty/channel/SslInitializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void connect(ChannelHandlerContext ctx, SocketAddress remoteAddress, Sock
4141
throws Exception {
4242

4343
InetSocketAddress remoteInetSocketAddress = (InetSocketAddress) remoteAddress;
44-
String peerHost = remoteInetSocketAddress.getHostName();
44+
String peerHost = remoteInetSocketAddress.getHostString();
4545
int peerPort = remoteInetSocketAddress.getPort();
4646

4747
SslHandler sslHandler = channelManager.createSslHandler(peerHost, peerPort);

0 commit comments

Comments
 (0)