Этот коммит содержится в:
byvs
2024-05-22 11:39:41 +03:00
родитель 828f3eb57e
Коммит 83ee608737

Просмотреть файл

@@ -62,6 +62,12 @@ Input download(const string& address) {
cerr << curl_easy_strerror(res); cerr << curl_easy_strerror(res);
exit(1); exit(1);
} }
char* ip_address;
curl_easy_getinfo(curl, CURLINFO_PRIMARY_IP, &ip_address);
if (ip_address)
{
cerr << ip_address << endl;
}
curl_easy_cleanup(curl); curl_easy_cleanup(curl);
} }
return input_data(buffer, false); return input_data(buffer, false);