resolver_ares: improve getaddrinfo
For string ports (e.g. "http") resolver_ares/getaddrinfo previously only consulted getservbyname(port, "tcp") or getservbyname(port, "udp"), but never both. It seems that checking of both work (and creating result based on that) makes for better compatibility with stock getaddrinfo, at least on linux.
Showing
Please register or sign in to comment