netty5/resolver-dns/src
Norman Maurer 4bd068edf0 DnsNameResolver.resolveAll(...) should not include duplicates (#9021)
Motivation:

DnsNameResolver#resolveAll(String) may return duplicate results in the event that the original hostname DNS response includes an IP address X and a CNAME that ends up resolving the same IP address X. This behavior is inconsistent with the JDK’s resolver and is unexpected to retrun a List with duplicate entries from a resolveAll(..) call.

Modifications:

- Filter out duplicates
- Add unit test

Result:

More consistent and less suprising behavior
2019-04-09 09:49:42 +02:00
..
main/java/io/netty/resolver/dns DnsNameResolver.resolveAll(...) should not include duplicates (#9021) 2019-04-09 09:49:42 +02:00
test DnsNameResolver.resolveAll(...) should not include duplicates (#9021) 2019-04-09 09:49:42 +02:00