summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-04-08 15:14:38 -0400
committerMathias Stearn <mathias@10gen.com>2010-04-08 15:15:35 -0400
commit0efadc48e9da3259765126e035aa33e2cdf0afdd (patch)
treefd6fd3b640ba13692ef16e309cbb668f9d387cf5 /shell
parent19da03b95eae7cfc4cadcd8dcb2ad7d46a94c389 (diff)
downloadmongo-0efadc48e9da3259765126e035aa33e2cdf0afdd.tar.gz
Disable IPv6 by default. Add function and cmdline opt to enable.
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;