Skip to content

Commit

Permalink
Make sure connections are encrypted by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Jan 21, 2020
1 parent 0d5e5d9 commit 2326080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tedious/connection-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ConnectionPool extends BaseConnectionPool {
const cfg = {
server: this.config.server,
options: Object.assign({
encrypt: typeof this.config.encrypt === 'boolean' ? this.config.encrypt : false
encrypt: typeof this.config.encrypt === 'boolean' ? this.config.encrypt : true
}, this.config.options),
authentication: Object.assign({
type: this.config.domain !== undefined ? 'ntlm' : 'default',
Expand Down

0 comments on commit 2326080

Please sign in to comment.