Permalink
Browse files

added ssl option

  • Loading branch information...
1 parent 0d5df55 commit 8d2813c4417c5a255f9eb8f4b89e43b0b4bc84c6 Adam Brightwell committed May 11, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/connect-mongo.js
View
@@ -21,6 +21,7 @@ var defaultOptions = {host: '127.0.0.1',
stringify: true,
collection: 'sessions',
auto_reconnect: false,
+ ssl: false,
w: 1};
module.exports = function(connect) {
@@ -102,7 +103,8 @@ module.exports = function(connect) {
options.port || defaultOptions.port,
{
auto_reconnect: options.auto_reconnect ||
- defaultOptions.auto_reconnect
+ defaultOptions.auto_reconnect,
+ ssl: options.ssl || defaultOptions.ssl
}),
{ w: options.w || defaultOptions.w });
}

0 comments on commit 8d2813c

Please sign in to comment.