-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DoH resolver implementation #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not so familiar with the DoH specifics, but it looks like you're just using the libraries and testing against actual DoH servers in the wild and it works.
If @lidel is happy then I'm happy 😄
Updated for [email protected], as the upstream dependency has been merged. Awaiting @lidel's review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Some suggestions for improved tests below, but no blockers.
"testing" | ||
) | ||
|
||
func TestLookupIPAddr(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to have an explicit check that confirms this returns both ipv4 AND ipv6 (libp2p.io
has both, so good candidate)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, let me do that/
Co-authored-by: Marcin Rataj <[email protected]>
Depends on multiformats/go-multiaddr-dns#26TBD: