[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#3
From: |
Tim Rühsen |
Subject: |
Re: [Wget-dev] wget2 | GSoC'18: Support DNS over HTTPS - Discussions (#378) |
Date: |
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 :-)
(current master).
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:
https://gitlab.com/gnuwget/wget2/issues/378#note_99636455
You're receiving this email because of your account on gitlab.com.