Tweak Mixbus pingback, follow http -> https redirects

This commit is contained in:
Robin Gareus 2020-10-30 15:58:15 +01:00
parent c69dde96eb
commit 85ecc40668
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 7 additions and 0 deletions

View File

@ -59,6 +59,13 @@ _pingback (void *arg)
pthread_set_name ("Pingback");
ArdourCurl::HttpGet h;
#ifdef MIXBUS
curl_easy_setopt (h.curl (), CURLOPT_FOLLOWLOCATION, 1);
/* do not check cert */
curl_easy_setopt (h.curl (), CURLOPT_SSL_VERIFYPEER, 0);
curl_easy_setopt (h.curl (), CURLOPT_SSL_VERIFYHOST, 0);
#endif
ping_call* cm = static_cast<ping_call*> (arg);
string return_str;
//initialize curl