[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#3
Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378)
Fri, 07 Sep 2018 09:12:41 +0000
I agree that constructing a struct addrinfo instance is ugly. There is no API
to do it 'officially'...
So what did I do for `--dns-cache-preload` ? I created
`wget_tcp_dns_cache_add()` which takes name, ip and port... Just use it :-)
The trick I did internally is to call getaddrinfo() with AI_NUMERICSERV set in
the hints. So no expensive DNS request is being made, and a addrinfo structure
is still set up for me.
Reply to this email directly or view it on GitLab:
You're receiving this email because of your account on gitlab.com.