Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hostip: Make Curl_ipv6works function independent of getaddrinfo #7529

Closed
wants to merge 1 commit into from

Commits on Aug 3, 2021

  1. hostip: Make Curl_ipv6works function independent of getaddrinfo

    - Do not assume IPv6 is not working when getaddrinfo is not present.
    
    The check to see if IPv6 actually works is now independent of whether
    there is any resolver that can potentially resolve a hostname to IPv6.
    
    Prior to this change if getaddrinfo() was not found at compile time then
    Curl_ipv6works() would be defined as a macro that returns FALSE.
    
    When getaddrinfo is not found then libcurl is built with CURLRES_IPV4
    defined instead of CURLRES_IPV6, meaning that it cannot do IPv6 lookups
    in the traditional way. With this commit if libcurl is built with IPv6
    support (ENABLE_IPV6) but without getaddrinfo (CURLRES_IPV6), and the
    IPv6 stack is actually working, then it is possible for libcurl to
    resolve IPv6 addresses by using DoH.
    
    Ref: curl#7483 (comment)
    
    Closes #xxxx
    jay committed Aug 3, 2021
    Copy the full SHA
    41b5864 View commit details
    Browse the repository at this point in the history