file-updater: Only use SSL ALPN opt if curl version up to date
This commit is contained in:
parent
bc38427862
commit
672d0b3716
@ -124,8 +124,10 @@ static bool do_http_request(struct update_info *info, const char *url,
|
||||
curl_easy_setopt(info->curl, CURLOPT_HEADERDATA, info);
|
||||
}
|
||||
|
||||
#if LIBCURL_VERSION_NUM >= 0x072400
|
||||
// A lot of servers don't yet support ALPN
|
||||
curl_easy_setopt(info->curl, CURLOPT_SSL_ENABLE_ALPN, 0);
|
||||
#endif
|
||||
|
||||
code = curl_easy_perform(info->curl);
|
||||
if (code != CURLE_OK) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user