Disable IPv6 by default. Add function and cmdline opt to enable.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user