iotexproject/go-p2p

Address is not right when using 0.0.0.0 in windows 10

coderbradlee opened this issue · 1 comments

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

try to fix in iotex-core