Skip to content

Commit 39f277a

Browse files
committed
Merge branch 'main' into fix-client-v2-bugs
2 parents 0df1fec + 247f322 commit 39f277a

File tree

1 file changed

+3
-0
lines changed
  • client-v2/src/main/java/com/clickhouse/client/api

1 file changed

+3
-0
lines changed

client-v2/src/main/java/com/clickhouse/client/api/Client.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ public Builder addEndpoint(String endpoint) {
179179
} catch (java.net.MalformedURLException | URISyntaxException e) {
180180
throw new IllegalArgumentException("Endpoint should be a valid URL string", e);
181181
}
182+
if (endpoint.startsWith("https://")) {
183+
this.configuration.put(ClickHouseClientOption.SSL.getKey(), "true");
184+
}
182185
this.endpoints.add(endpoint);
183186
return this;
184187
}

0 commit comments

Comments
 (0)