Skip to content

Commit

Permalink
pass tls in options
Browse files Browse the repository at this point in the history
  • Loading branch information
Elexy committed Feb 26, 2018
1 parent 68cd76d commit 896831d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Expand Up @@ -46,7 +46,8 @@ internals.Connection.prototype.start = function () {

const options = {
password: this.settings.password,
db: this.settings.database || this.settings.db
db: this.settings.database || this.settings.db,
tls: this.settings.tls
};

if (this.settings.sentinels && this.settings.sentinels.length) {
Expand Down

0 comments on commit 896831d

Please sign in to comment.