Index: lldb/source/Utility/UriParser.cpp =================================================================== --- lldb/source/Utility/UriParser.cpp +++ lldb/source/Utility/UriParser.cpp @@ -42,7 +42,7 @@ // Extract hostname if (!host_port.empty() && host_port[0] == '[') { // hostname is enclosed with square brackets. - pos = host_port.find(']'); + pos = host_port.rfind(']'); if (pos == std::string::npos) return false;