Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net: need portable api to find network masks from local interfaces #7955
The functions below don't provide network masks under Windows 7: http://golang.org/pkg/net/#InterfaceAddrs http://golang.org/pkg/net/#Interface.Addrs What does 'go version' print? go version go1.2.2 windows/amd64 What steps reproduce the problem? 1. save http://play.golang.org/p/LNSJnZS-Be to ip.go 2. go run ip.go What happened? Under Windows 7, only the ip addresses are shown (but not the netmasks). What should have happened instead? Need a portable api to get network masks from local interfaces. Please provide any additional information below. Question on stackoverflow: http://stackoverflow.com/questions/23529663/how-to-get-all-addresses-and-masks-from-local-interfaces-in-go
This issue was closed.