Skip to content

Commit

Permalink
Merge pull request #99 from egallup02360/95-fix
Browse files Browse the repository at this point in the history
#95 fix
  • Loading branch information
Paxa authored Jan 19, 2020
2 parents 7d97963 + 227ccfb commit 1020bfa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,15 @@ class Connection {
hosts: [host],
path: [options.database],
user: options.user,
password: options.password
password: options.password,
});
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 1020bfa

Please sign in to comment.