Skip to content

Commit

Permalink
Runtime check of curl version for BEP-7.
Browse files Browse the repository at this point in the history
Co-authored-by: Charles Kerr <charles@charleskerr.com>
  • Loading branch information
lvella and ckerr committed Jun 17, 2022
1 parent e0c12ad commit e7b05e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libtransmission/announcer-http.cc
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ void tr_tracker_http_announce(

auto ipv6 = tr_globalIPv6(session);

#if LIBCURL_VERSION_NUM < CURL_VERSION_BITS(7, 77, 0)
if (curl_version_info(CURLVERSION_NOW)->version_num >= 0x074d00 /* 7.77.00*/)
{
/*
* Before Curl 7.77.0, if we explicitly choose the IP version we want
* to use, it is still possible that the wrong one is used. The workaround
Expand Down

0 comments on commit e7b05e7

Please sign in to comment.