|
|
@ -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);
|
|
|
|