summaryrefslogtreecommitdiff
path: root/tools/tool.cpp
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 /tools/tool.cpp
parent19da03b95eae7cfc4cadcd8dcb2ad7d46a94c389 (diff)
downloadmongo-0efadc48e9da3259765126e035aa33e2cdf0afdd.tar.gz
Disable IPv6 by default. Add function and cmdline opt to enable.
Diffstat (limited to 'tools/tool.cpp')
-rw-r--r--tools/tool.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/tool.cpp b/tools/tool.cpp
index c9a297768e3..25b443a705f 100644
--- a/tools/tool.cpp
+++ b/tools/tool.cpp
@@ -46,6 +46,7 @@ namespace mongo {
("collection,c",po::value<string>(), "collection to use (some commands)" )
("username,u",po::value<string>(), "username" )
("password,p",po::value<string>(), "password" )
+ ("ipv6", "enable IPv6 support (disabled by default)")
;
if ( localDBAllowed )
_options->add_options()
@@ -191,6 +192,9 @@ namespace mongo {
if ( _params.count( "password" ) )
_password = _params["password"].as<string>();
+ if (_params.count("ipv6"))
+ enableIPv6();
+
int ret = -1;
try {
ret = run();