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 {
347
347
ciphers : this . config . ssl . ciphers ,
348
348
key : this . config . ssl . key ,
349
349
passphrase : this . config . ssl . passphrase ,
350
- minVersion : this . config . ssl . minVersion
350
+ minVersion : this . config . ssl . minVersion ,
351
+ maxVersion : this . config . ssl . maxVersion
351
352
} ) ;
352
353
const rejectUnauthorized = this . config . ssl . rejectUnauthorized ;
353
354
const verifyIdentity = this . config . ssl . verifyIdentity ;
Original file line number Diff line number Diff line change @@ -228,6 +228,11 @@ declare namespace Connection {
228
228
*/
229
229
minVersion ?: string ;
230
230
231
+ /**
232
+ * Configure the maximum supported version of SSL, the default is TLSv1.3.
233
+ */
234
+ maxVersion ?: string ;
235
+
231
236
/**
232
237
* You can verify the server name identity presented on the server certificate when connecting to a MySQL server.
233
238
* 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