|
|
@ -162,14 +162,14 @@ bool GetMyExternalIP2(const CService& addrConnect, const char* pszGet, const cha
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (pszKeyword == NULL)
|
|
|
|
if (pszKeyword == NULL)
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
if (strLine.find(pszKeyword) != -1)
|
|
|
|
if (strLine.find(pszKeyword) != string::npos)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
strLine = strLine.substr(strLine.find(pszKeyword) + strlen(pszKeyword));
|
|
|
|
strLine = strLine.substr(strLine.find(pszKeyword) + strlen(pszKeyword));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
closesocket(hSocket);
|
|
|
|
closesocket(hSocket);
|
|
|
|
if (strLine.find("<") != -1)
|
|
|
|
if (strLine.find("<") != string::npos)
|
|
|
|
strLine = strLine.substr(0, strLine.find("<"));
|
|
|
|
strLine = strLine.substr(0, strLine.find("<"));
|
|
|
|
strLine = strLine.substr(strspn(strLine.c_str(), " \t\n\r"));
|
|
|
|
strLine = strLine.substr(strspn(strLine.c_str(), " \t\n\r"));
|
|
|
|
while (strLine.size() > 0 && isspace(strLine[strLine.size()-1]))
|
|
|
|
while (strLine.size() > 0 && isspace(strLine[strLine.size()-1]))
|
|
|
|