Re #87: Fix for accidental clearing of logEndpoint.

This commit is contained in:
Tomasz Kowalczewski committed 2022-05-05 09:13:44 +02:00
1 parent cdbf9e46bc
commit bd1b72c619
1 file changed
+9 -1
@@ -137,6 +137,8 @@ public class ClientConfigurationBuilder {
}
logEndpoint = parsedUrl.getPath();
} else {
logEndpoint = DEFAULT_LOG_ENDPOINT;
}
if (HTTPS_STRING.equalsIgnoreCase(parsedUrl.getProtocol())) {
@@ -148,6 +150,12 @@ public class ClientConfigurationBuilder {
}
private void validateAndConfigureConnectionParametersNoUrl() {
useSSL |= port == HTTPS_PORT;
if (logEndpoint == null) {
logEndpoint = DEFAULT_LOG_ENDPOINT;
}
if (!useSSL) {
useSSL = port == HTTPS_PORT;
}
}
}