You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mikioh
changed the title
IPto4() in package net is not returning nil for IPv6 address.
net: IP.To4() in package net is not returning nil for IPv6 address.
Jul 22, 2016
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.6 linux/amd64
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/local/google/home/kspessard/Go"
GORACE=""
GOROOT="/usr/lib/google-golang"
GOTOOLDIR="/usr/lib/google-golang/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -gno-record-gcc-switches -fdebug-prefix-map=/tmp/go-build103771964=/tmp/go-build"
CXX="g++"
CGO_ENABLED="1"
https://play.golang.org/p/uKxvfsPPvu
Since function ip.To4() is supposed to return nil if ip is IPv6, I expected to see....
The text was updated successfully, but these errors were encountered: