mirror of
https://github.com/tiennm99/tjahzi.git
synced 2026-10-17 22:14:33 +00:00
Re #87: Fix for accidental clearing of logEndpoint.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user