Skip to content

Commit

Permalink
doc: don't promise to implement RFC6724 (#6)
Browse files Browse the repository at this point in the history
It would probably not be worth the effort for our purposes.

So, avoid over-promising inside the docs.
  • Loading branch information
bassosimone authored Nov 18, 2024
1 parent 7664122 commit f485e5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ func (r *Resolver) LookupHost(ctx context.Context, host string) ([]string, error
// resolverDedupAndSort deduplicates a list of addresses and sorts IPv4
// addresses before IPv6 addresses. In principle, DNS resolvers should not
// return duplicates, but, with censorship, it is possible that the AAAA
// query answer is actually a censored A answer. Additionally, until we have
// implemented RFC6724, we sort IPv4 addresses before IPv6 addresses, since
// everyone supports IPv4 and not everyone supports IPv6.
// query answer is actually a censored A answer. Additionally, since we
// don't implement RFC6724, we sort IPv4 addresses before IPv6 addresses,
// given that everyone supports IPv4 and not everyone supports IPv6.
func resolverDedupAndSort(addrs []string) []string {
uniq := make(map[string]struct{})
var dedupA, dedupAAAA []string
Expand Down

0 comments on commit f485e5a

Please sign in to comment.