Commit e14354d1 authored by Marten Seemann's avatar Marten Seemann

only listen on localhost in tests

parent 95888d69
......@@ -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)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment