[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 10:59:12 +0000 |
As I wrote, it converts name,ip,port into a addrinfo structure.
So you have the name, e.g. 'example.com' which you sent to the DoH server.
With the response you get the numerical IP - you say as in_addr !? Then use
inet_ntop() to convert it into a string 'ip'. Then call
wget_tcp_dns_cache_add(ip, name, port) with the port from the original URL
whose domain you looked up.
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/issues/378#note_99668704
You're receiving this email because of your account on gitlab.com.