netty5/resolver/src
Trustin Lee ef0e053202 Preserve the host name of address when parsing /etc/hosts file
Motivation:

When an InetNameResolver resolves a name, it is expected to reserve the
requested host name in the resolved InetAddress.

DefaultHostsFileEntriesResolver does not preserve the host name. For
example, resolving 'localhost' will return an InetAddress whose address
is '127.0.0.1', but its getHostString() will not return 'localhost' but
just '127.0.0.1'.

Modifications:

Fix the construction of parsed InetAddresses in HostsFileParser

Result:

Host name is preserved in the resolved InetAddress
2016-02-04 13:45:01 +01:00
..
main/java/io/netty/resolver Preserve the host name of address when parsing /etc/hosts file 2016-02-04 13:45:01 +01:00
test/java/io/netty/resolver Have hosts file support for DnsNameResolver, close #4074 2015-12-17 15:15:42 +01:00