Skip to content

Commit 12b48d4

Browse files
committed
Actually we don't need to use the TrustAllOptions since it's handled by the SSLHelper
1 parent f75cada commit 12b48d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vertx-mssql-client/src/main/java/io/vertx/mssqlclient/impl/MSSQLSocketConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Future<Void> enableSsl(boolean clientConfigSsl, byte encryptionLevel, MSSQLConne
105105

106106
// Do not perform hostname validation if the client did not require encryption
107107
if (!clientConfigSsl) {
108-
sslOptions.setTrustOptions(TrustAllOptions.INSTANCE);
108+
sslOptions.setTrustAll(true);
109109
}
110110
sslOptions.setHostnameVerificationAlgorithm("");
111111

0 commit comments

Comments
 (0)