Disable IPv6 by default. Add function and cmdline opt to enable.

This commit is contained in:
Mathias Stearn
2010-04-08 15:14:38 -04:00
parent 19da03b95e
commit 0efadc48e9
7 changed files with 25 additions and 3 deletions

View File

@@ -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;