gemato
gemato copied to clipboard
openpgp: implement WKD advanced lookup
Signed-off-by: Robin H. Johnson [email protected]
It's not perfect yet, I couldn't figure out how how to mock socket.getaddrinfo
for testing
My first concern is that this bypasses proxy.
Hmm, the spec does say to do the advanced/direct switch depending if the hostname exists. How do we make that determination behind a proxy? Do we trust that the HTTPS request via the proxy returns a meaningful 404 vs actual data?