File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,8 @@ class Connection extends EventEmitter {
347347 ciphers : this . config . ssl . ciphers ,
348348 key : this . config . ssl . key ,
349349 passphrase : this . config . ssl . passphrase ,
350- minVersion : this . config . ssl . minVersion
350+ minVersion : this . config . ssl . minVersion ,
351+ maxVersion : this . config . ssl . maxVersion
351352 } ) ;
352353 const rejectUnauthorized = this . config . ssl . rejectUnauthorized ;
353354 const verifyIdentity = this . config . ssl . verifyIdentity ;
Original file line number Diff line number Diff line change @@ -228,6 +228,11 @@ declare namespace Connection {
228228 */
229229 minVersion ?: string ;
230230
231+ /**
232+ * Configure the maximum supported version of SSL, the default is TLSv1.3.
233+ */
234+ maxVersion ?: string ;
235+
231236 /**
232237 * You can verify the server name identity presented on the server certificate when connecting to a MySQL server.
233238 * You should enable this but it is disabled by default right now for backwards compatibility.
You can’t perform that action at this time.
0 commit comments