code: свой вариант
Этот коммит содержится в:
6
main.cpp
6
main.cpp
@@ -62,6 +62,12 @@ Input download(const string& address) {
|
||||
cerr << curl_easy_strerror(res);
|
||||
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);
|
||||
}
|
||||
return input_data(buffer, false);
|
||||
|
||||
Ссылка в новой задаче
Block a user