]> Cypherpunks repositories - gostls13.git/commit
net: make /etc/hosts lookups case-insensitive
authorBurcu Dogan <jbd@google.com>
Thu, 1 Oct 2015 19:01:50 +0000 (15:01 -0400)
committerBurcu Dogan <jbd@google.com>
Thu, 1 Oct 2015 20:52:54 +0000 (20:52 +0000)
commitd96a3a2d113909a470d2fd039018e1852a8d72b8
tree1693ee062148772f1122c83a09e12c6608d95922
parentf1b25c4ccfdd72745407f846e55399b194a23c90
net: make /etc/hosts lookups case-insensitive

The native Go host resolver was behaving differently than libc
and the entries in the /etc/hosts were handled in a case sensitive
way. In order to be compatible with libc's resolver, /etc/hosts
lookups must be case-insensitive.

Fixes #12806.

Change-Id: I3c14001abffadf7458fd1a027c91e6438a87f285
Reviewed-on: https://go-review.googlesource.com/15321
Run-TryBot: Burcu Dogan <jbd@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/hosts.go
src/net/hosts_test.go
src/net/testdata/hosts