diff --git a/dial_test.go b/dial_test.go index 6462d7e11fa1983323b997cb109b53d57638a45f..9fc5df4189f395b26e7592e82e92bf4659e6b8b1 100644 --- a/dial_test.go +++ b/dial_test.go @@ -153,7 +153,7 @@ func TestSimultDials(t *testing.T) { func newSilentPeer(t *testing.T) (peer.ID, ma.Multiaddr, net.Listener) { dst := testutil.RandPeerIDFatal(t) - lst, err := net.Listen("tcp4", ":0") + lst, err := net.Listen("tcp4", "localhost:0") if err != nil { t.Fatal(err) }