Address is not right when using 0.0.0.0 in windows 10
coderbradlee opened this issue · 1 comments
coderbradlee commented
windows 10 with go version 1.13.5,run the following test:
func TestXX(t *testing.T) {
opts := []Option{
HostName("0.0.0.0"),
Port(1234),
}
host, err := NewHost(context.Background(), opts...)
fmt.Println(host.Addresses(),":",err)
}
the returned address will be 169.254.. that's not the real address
coderbradlee commented
try to fix in iotex-core