Skip to content

Commit 0bee4c3

Browse files
authored
adding support for sslrootcert option in connection string (porsager#690)
* adding support for sslrootcert option in connection string * Update index.js
1 parent 55186d1 commit 0bee4c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ function parseOptions(a, b) {
437437
o.no_prepare && (o.prepare = false)
438438
query.sslmode && (query.ssl = query.sslmode, delete query.sslmode)
439439
'timeout' in o && (console.log('The timeout option is deprecated, use idle_timeout instead'), o.idle_timeout = o.timeout) // eslint-disable-line
440+
query.sslrootcert === 'system' && (query.ssl = 'verify-full')
440441

441442
const ints = ['idle_timeout', 'connect_timeout', 'max_lifetime', 'max_pipeline', 'backoff', 'keep_alive']
442443
const defaults = {

0 commit comments

Comments
 (0)