diff --git a/shell/utils.cpp b/shell/utils.cpp index afc70940351..50e6785f666 100644 --- a/shell/utils.cpp +++ b/shell/utils.cpp @@ -217,7 +217,7 @@ namespace mongo { } argv_[ args.nFields() ] = 0; - if ( program == "mongo" ) + if ( program != "mongod" && program != "mongos" ) port_ = 0; else assert( port_ > 0 );