support for forced ssl everywhere in client and server
This commit is contained in:
@@ -504,6 +504,9 @@ int _main(int argc, char* argv[]) {
|
||||
("version", "show version information")
|
||||
("verbose", "increase verbosity")
|
||||
("ipv6", "enable IPv6 support (disabled by default)")
|
||||
#ifdef MONGO_SSL
|
||||
("ssl", "use all for connections")
|
||||
#endif
|
||||
;
|
||||
|
||||
hidden_options.add_options()
|
||||
@@ -572,6 +575,11 @@ int _main(int argc, char* argv[]) {
|
||||
if (params.count("quiet")) {
|
||||
mongo::cmdLine.quiet = true;
|
||||
}
|
||||
#ifdef MONGO_SSL
|
||||
if (params.count("ssl")) {
|
||||
mongo::cmdLine.sslOnNormalPorts = true;
|
||||
}
|
||||
#endif
|
||||
if (params.count("nokillop")) {
|
||||
mongo::shellUtils::_nokillop = true;
|
||||
}
|
||||
@@ -579,6 +587,8 @@ int _main(int argc, char* argv[]) {
|
||||
autoKillOp = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* This is a bit confusing, here are the rules:
|
||||
*
|
||||
* if nodb is set then all positional parameters are files
|
||||
|
||||
Reference in New Issue
Block a user