Skip to content

Commit 1680c86

Browse files
authored
Merge pull request #1252 from dhensby/pulls/fix-encrypt-config
Use passed value for encrypt in connection string
2 parents 6157a60 + 68bbe2b commit 1680c86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/base/connection-pool.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class ConnectionPool extends EventEmitter {
162162
}
163163
case 'encrypt':
164164
Object.assign(config.options, {
165-
encrypt: true
165+
encrypt: !!value
166166
})
167167
break
168168
case 'enlist':
@@ -215,7 +215,7 @@ class ConnectionPool extends EventEmitter {
215215
break
216216
case 'transaction binding':
217217
Object.assign(config.options, {
218-
enableImplicitTransactions: value.toLowerCase() === 'Implicit Unbind'
218+
enableImplicitTransactions: value.toLowerCase() === 'implicit unbind'
219219
})
220220
break
221221
case 'transparentnetworkipresolution':

0 commit comments

Comments
 (0)