summaryrefslogtreecommitdiff
path: root/src/mongo/client/mongo_uri.cpp
diff options
context:
space:
mode:
authorMatt Cotter <matt.cotter@mongodb.com>2016-07-13 14:39:35 -0400
committerMatt Cotter <matt.cotter@mongodb.com>2016-08-18 14:13:01 -0400
commit88b540f0c14c7ab8af708aecc4cd6df83081b32e (patch)
treea6f01563ac2b8db7d34f98e5fab3d17f5416e315 /src/mongo/client/mongo_uri.cpp
parentceeb17e4265c4c48765acbf9ad6a60b5f1889332 (diff)
downloadmongo-88b540f0c14c7ab8af708aecc4cd6df83081b32e.tar.gz
SERVER-22382 allow mongo --host to take uri
Diffstat (limited to 'src/mongo/client/mongo_uri.cpp')
-rw-r--r--src/mongo/client/mongo_uri.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/mongo_uri.cpp b/src/mongo/client/mongo_uri.cpp
index ab16452b56b..e737479d05b 100644
--- a/src/mongo/client/mongo_uri.cpp
+++ b/src/mongo/client/mongo_uri.cpp
@@ -56,7 +56,7 @@ const char kMongoDBURL[] =
"(?:([^:]+)(?::([^@]+))?@)?"
// servers: grabs all host:port or UNIX socket names
- "((?:[^\\/]+|/.+\\.sock)(?:(?:[^\\/]+|/.+\\.sock),)*)"
+ "((?:[^\\/]+|/.+\\.sock)(?:,(?:[^\\/]+|/.+\\.sock))*)"
// database and options are grouped together
"(?:/"