Skip to content

Commit

Permalink
fix parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Apr 23, 2010
1 parent 3758c71 commit fdf1d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/dbshell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ string fixHost( string url , string host , string port ){
string newurl = host;
if ( port.size() > 0 )
newurl += ":" + port;
else if (host.find(':') != string::npos){
else if (host.find(':') == string::npos){
// need to add port with IPv6 addresses
newurl += ":27017";
}
Expand Down

0 comments on commit fdf1d70

Please sign in to comment.