1
0
mirror of https://github.com/golang/go synced 2024-10-04 15:11:20 -06:00
go/src/net/testdata
Mikio Hara 9378493d16 net: fix parsing literal IP addresses in local database
This change fixes incorrect parsing of literal IP addresses in local
database when the addresses contain IPv6 zone identifiers, are in
dotted-decimal notation or in colon-hexadecimal notation with leading
zeros.

https://golang.org/cl/5851 already fixed the code path using getaddrinfo
via cgo. This change fixes the remaining non-cgo code path.

Fixes #8243.
Fixes #8996.

Change-Id: I48443611cbabed0d69667cc73911ba3de396fd44
Reviewed-on: https://go-review.googlesource.com/10306
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-06-02 11:47:06 +00:00
..
domain-resolv.conf
empty-resolv.conf
hosts
igmp
igmp6
ipv4-hosts net: fix parsing literal IP addresses in local database 2015-06-02 11:47:06 +00:00
ipv6-hosts net: fix parsing literal IP addresses in local database 2015-06-02 11:47:06 +00:00
openbsd-resolv.conf
resolv.conf
search-resolv.conf
singleline-hosts net: fix parsing literal IP addresses in local database 2015-06-02 11:47:06 +00:00