Skip to content

Commit f6d544c

Browse files
committed
--ssl for tools SERVER-3729
1 parent 79b292b commit f6d544c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tools/tool.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ namespace mongo {
5353
("host,h",po::value<string>(), "mongo host to connect to ( <set name>/s1,s2 for sets)" )
5454
("port",po::value<string>(), "server port. Can also use --host hostname:port" )
5555
("ipv6", "enable IPv6 support (disabled by default)")
56+
#ifdef MONGO_SSL
57+
("ssl", "use all for connections")
58+
#endif
5659

5760
("username,u",po::value<string>(), "username" )
5861
("password,p", new PasswordValue( &_password ), "password" )
@@ -170,6 +173,13 @@ namespace mongo {
170173
}
171174
}
172175

176+
177+
#ifdef MONGO_SSL
178+
if (_params.count("ssl")) {
179+
mongo::cmdLine.sslOnNormalPorts = true;
180+
}
181+
#endif
182+
173183
preSetup();
174184

175185
bool useDirectClient = hasParam( "dbpath" );

0 commit comments

Comments
 (0)