Skip to content

Commit e67da29

Browse files
committed
Add sslmode=verify-full support
1 parent 6e08c8e commit e67da29

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/connection.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,11 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
268268
socket,
269269
...(ssl === 'require' || ssl === 'allow' || ssl === 'prefer'
270270
? { rejectUnauthorized: false }
271-
: ssl
271+
: ssl === 'verify-full'
272+
? {}
273+
: typeof ssl === 'object'
274+
? ssl
275+
: {}
272276
)
273277
})
274278
socket.on('secureConnect', connected)

0 commit comments

Comments
 (0)