From 7a664ac8c10b8d5d1176dba3603e06f0e01abe78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Tue, 13 Jul 2021 11:48:43 +0200 Subject: [PATCH] Disable CURLOPT_SSL_VERIFYPEER=0 #3518 --- lib/ProxySQL_HTTP_Server.cpp | 1 - src/main.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/ProxySQL_HTTP_Server.cpp b/lib/ProxySQL_HTTP_Server.cpp index b11407848..ce4b60033 100644 --- a/lib/ProxySQL_HTTP_Server.cpp +++ b/lib/ProxySQL_HTTP_Server.cpp @@ -86,7 +86,6 @@ static char * check_latest_version() { curl_easy_setopt(curl_handle, CURLOPT_URL, "https://www.proxysql.com/latest"); curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback); curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk); - curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 0); string s = "proxysql-agent/"; s += PROXYSQL_VERSION; diff --git a/src/main.cpp b/src/main.cpp index 39dfaa241..5df0cc98c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -201,7 +201,6 @@ static char * main_check_latest_version() { curl_easy_setopt(curl_handle, CURLOPT_URL, "https://www.proxysql.com/latest"); curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, WriteMemoryCallback); curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk); - curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 0); string s = "proxysql-agent/"; s += PROXYSQL_VERSION;