Skip to content

Commit

Permalink
Merge pull request #1185 from vtsykun/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
marci4 authored Oct 6, 2021
2 parents 1eb4303 + d71467c commit 1eb2f13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ public void run() {
socket.setReuseAddress(isReuseAddr());

if (!socket.isConnected()) {
InetSocketAddress addr = new InetSocketAddress(dnsResolver.resolve(uri), this.getPort());
InetSocketAddress addr = dnsResolver == null ? InetSocketAddress.createUnresolved(uri.getHost(), getPort()) : new InetSocketAddress(dnsResolver.resolve(uri), this.getPort());
socket.connect(addr, connectTimeout);
}

Expand Down

0 comments on commit 1eb2f13

Please sign in to comment.