提交 672d0b37 编写于 作者: J jp9000

file-updater: Only use SSL ALPN opt if curl version up to date

上级 bc384278
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册