From f485e5ad9ab056fca02bdb19bbb235e80f1720f1 Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Mon, 18 Nov 2024 16:44:17 +0100 Subject: [PATCH] doc: don't promise to implement RFC6724 (#6) It would probably not be worth the effort for our purposes. So, avoid over-promising inside the docs. --- resolver.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resolver.go b/resolver.go index d46e619..188861b 100644 --- a/resolver.go +++ b/resolver.go @@ -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