We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 287919a + b422833 commit 247f322Copy full SHA for 247f322
client-v2/src/main/java/com/clickhouse/client/api/Client.java
@@ -177,6 +177,9 @@ public Builder addEndpoint(String endpoint) {
177
} catch (java.net.MalformedURLException e) {
178
throw new IllegalArgumentException("Endpoint should be a valid URL string", e);
179
}
180
+ if (endpoint.startsWith("https://")) {
181
+ this.configuration.put(ClickHouseClientOption.SSL.getKey(), "true");
182
+ }
183
this.endpoints.add(endpoint);
184
return this;
185
0 commit comments