Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net: missing interfaces on Windows #12301
In 1.4.1 returns:
In 1.5 returns:
Any code relying on net.Interfaces() breaks (for example making multicasts to all interfaces, since Windows by default multicasts to some single interface)
What version of Go are you using (go version)?
What operating system and processor architecture are you using?
What did you do?
What did you expect to see?
What did you see instead?
netsh interface show interface
referenced this issue
Aug 24, 2015
Please take a look at https://github.com/golang/go/blob/master/CONTRIBUTING.md and let us know your environment information. Also can you show us the output of "go test -v -run=Interface at $GOROOT/src/net" and "ipconfig? ifconfig? netsh interfaces show?" on the node? (Please anonymize IDs in the output if necessary)
Thanks. Just skimmed interface_windows.go and looks like the code is broken. At least about the following:
Re 1, it does, because of
In my case:
So tests are passing on my machine too, but they are not testing against ipconfig for example. So the output the tests produce is just wrong. As you can see in my case it only returns loopback addresses, though I have an 192 ip address too.