Skip to content

Commit

Permalink
Merge pull request #73 from libp2p/dont-listen-on-all-interfaces
Browse files Browse the repository at this point in the history
don't listen on all interfaces in tests
  • Loading branch information
Stebalien authored Mar 12, 2021
2 parents 3a37a04 + 76f4936 commit bda39a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/net/upgrader/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func createListener(t *testing.T, upgrader *st.Upgrader) transport.Listener {
t.Helper()
require := require.New(t)

addr, err := ma.NewMultiaddr("/ip4/0.0.0.0/tcp/0")
addr, err := ma.NewMultiaddr("/ip4/127.0.0.1/tcp/0")
require.NoError(err)

ln, err := manet.Listen(addr)
Expand Down

0 comments on commit bda39a2

Please sign in to comment.