Skip to content

Commit a427a1c

Browse files
Just one IP is enough
1 parent 062e333 commit a427a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/main/java/com/genexus/internet/HttpClientJavaLib.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class HttpClientJavaLib extends GXHttpClient {
6868

6969
private static final DnsResolver FIRST_IP_DNS_RESOLVER = host -> {
7070
InetAddress[] allIps = SystemDefaultDnsResolver.INSTANCE.resolve(host);
71-
if (allIps != null && allIps.length > 1) {
71+
if (allIps != null && allIps.length > 0) {
7272
return new InetAddress[]{allIps[0]};
7373
}
7474
return allIps;

0 commit comments

Comments
 (0)