Skip to content

Commit

Permalink
Fix non-ssl connection
Browse files Browse the repository at this point in the history
Now confirmed to work for both ssl and non-ssl connections.
  • Loading branch information
evangallup authored Jan 7, 2020
1 parent 5652ba8 commit 227ccfb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,14 @@ class Connection {
path: [options.database],
user: options.user,
password: options.password,
params: { ssl: options.ssl }
});
cs.params = {};
if (socketPort) {
cs.params = {};
cs.params.socketPort = socketPort
}
if (options.ssl) {
cs.params.ssl = true;
}
return cs.toString();
}

Expand Down

0 comments on commit 227ccfb

Please sign in to comment.