an-tao / trantor

a non-blocking I/O tcp network lib based on c++14/17
Other
398 stars 134 forks source link

Fix build on latest c-ares #331

Closed marty1885 closed 7 months ago

marty1885 commented 7 months ago

Fix for #329. This PR replaces the use of ares_gethostbyname with the new ares_getaddrinfo. I found that we used to only accept IPv4 results. Should we enable IPv6?

an-tao commented 7 months ago

We can add ipv6 support in a new PR.