summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/dbshell.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/dbshell.cpp b/shell/dbshell.cpp
index e742a0910e8..fa7b4353f2a 100644
--- a/shell/dbshell.cpp
+++ b/shell/dbshell.cpp
@@ -321,6 +321,7 @@ int _main(int argc, char* argv[]) {
("password,p", po::value<string>(&password), "password for authentication")
("help,h", "show this usage information")
("version", "show version information")
+ ("ipv6", "enable IPv6 support (disabled by default)")
;
hidden_options.add_options()
@@ -399,6 +400,9 @@ int _main(int argc, char* argv[]) {
}
}
}
+ if (params.count("ipv6")){
+ mongo::enableIPv6();
+ }
if ( ! mongo::cmdLine.quiet )
cout << "MongoDB shell version: " << mongo::versionString << endl;