disable ssl in curl on android, implement interactive permission for android 23+
This commit is contained in:
@@ -69,10 +69,14 @@ void NodeDialogCloud::load_thumbs_thread()
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &res);
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_data_handler);
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://panopainter.com/cloud/cloud-list.php");
|
||||
#ifdef __ANDROID__
|
||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||
#endif
|
||||
auto err = curl_easy_perform(curl);
|
||||
|
||||
if (err != CURLE_OK)
|
||||
{
|
||||
LOG("connection error: %d", err);
|
||||
async_start();
|
||||
text->set_text("Could not connect to the server");
|
||||
async_update();
|
||||
|
||||
Reference in New Issue
Block a user