forked from netty/netty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
075a54a
commit ef0e053
Showing
1 changed file
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters