]> Cypherpunks repositories - gostls13.git/commit
net: ParseIP should return nil if :: doesn't expand in an IPv6 address.
authorAlex A Skinner <alex@lx.lc>
Fri, 20 Dec 2013 12:29:28 +0000 (21:29 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 20 Dec 2013 12:29:28 +0000 (21:29 +0900)
commit487dff18521634c7589a9a65640dce930eb9715a
tree104d76dff5466e6c6ddebdc499dc7fc878f0f75e
parenteb7ed0d6264b76a59e564803aed16fc4ccacd4d9
net: ParseIP should return nil if :: doesn't expand in an IPv6 address.

Per RFC 4291, 'The use of "::" indicates one or more groups of 16 bits of zeros.'
Fixes #6628

R=golang-dev, rsc, minux.ma, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/15990043
src/pkg/net/ip.go
src/pkg/net/ip_test.go