diff options
author | Mathias Stearn <mathias@10gen.com> | 2010-04-08 15:14:38 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2010-04-08 15:15:35 -0400 |
commit | 0efadc48e9da3259765126e035aa33e2cdf0afdd (patch) | |
tree | fd6fd3b640ba13692ef16e309cbb668f9d387cf5 /tools/tool.cpp | |
parent | 19da03b95eae7cfc4cadcd8dcb2ad7d46a94c389 (diff) | |
download | mongo-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.cpp | 4 |
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(); |