We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93d01e1 commit 3cb3da3Copy full SHA for 3cb3da3
lib/url_parser.js
@@ -212,6 +212,7 @@ function parseConnectionString(url, options) {
212
213
for (let i = 0; i < hosts.length; i++) {
214
let r = parser.parse(f('mongodb://%s', hosts[i].trim()));
215
+ if (r.path && r.path.indexOf('.sock') !== -1) continue;
216
if (r.path && r.path.indexOf(':') !== -1) {
217
// Not connecting to a socket so check for an extra slash in the hostname.
218
// Using String#split as perf is better than match.
0 commit comments