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 0df1fec + 247f322 commit 39f277aCopy full SHA for 39f277a
client-v2/src/main/java/com/clickhouse/client/api/Client.java
@@ -179,6 +179,9 @@ public Builder addEndpoint(String endpoint) {
179
} catch (java.net.MalformedURLException | URISyntaxException e) {
180
throw new IllegalArgumentException("Endpoint should be a valid URL string", e);
181
}
182
+ if (endpoint.startsWith("https://")) {
183
+ this.configuration.put(ClickHouseClientOption.SSL.getKey(), "true");
184
+ }
185
this.endpoints.add(endpoint);
186
return this;
187
0 commit comments