We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eea21c9 commit e7615f2Copy full SHA for e7615f2
1 file changed
java/src/main/java/com/genexus/internet/HttpClientJavaLib.java
@@ -69,9 +69,9 @@ public HttpClientJavaLib() {
69
getPoolInstance();
70
ConnectionKeepAliveStrategy myStrategy = generateKeepAliveStrategy();
71
httpClientBuilder = HttpClients.custom().setConnectionManager(connManager).setConnectionManagerShared(true).setKeepAliveStrategy(myStrategy);
72
- String gxDns = System.getenv("GX_USE_FIRST_IP_DNS");
+ String gxDns = System.getProperty("GX_USE_FIRST_IP_DNS");
73
if (gxDns == null || gxDns.trim().isEmpty()) {
74
- gxDns = System.getProperty("GX_USE_FIRST_IP_DNS");
+ gxDns = System.getenv("GX_USE_FIRST_IP_DNS");
75
}
76
if (gxDns != null && gxDns.trim().equalsIgnoreCase("true")) {
77
httpClientBuilder.setDnsResolver(new SystemDefaultDnsResolver() {
0 commit comments