diff options
author | Matt Cotter <matt.cotter@mongodb.com> | 2016-07-13 14:39:35 -0400 |
---|---|---|
committer | Matt Cotter <matt.cotter@mongodb.com> | 2016-08-18 14:13:01 -0400 |
commit | 88b540f0c14c7ab8af708aecc4cd6df83081b32e (patch) | |
tree | a6f01563ac2b8db7d34f98e5fab3d17f5416e315 /src/mongo/client/mongo_uri.cpp | |
parent | ceeb17e4265c4c48765acbf9ad6a60b5f1889332 (diff) | |
download | mongo-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.cpp | 2 |
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 "(?:/" |