Skip to content

Commit

Permalink
swarm: fix addr for TestBlackHoledAddrBlocked (#2803)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt authored May 20, 2024
1 parent 024293c commit 3dba03a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions p2p/net/swarm/swarm_dial_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,9 @@ func TestBlackHoledAddrBlocked(t *testing.T) {
n := 3
s.bhd.ipv6 = &blackHoleFilter{n: n, minSuccesses: 1, name: "IPv6"}

// all dials to the address will fail. RFC6666 Discard Prefix
addr := ma.StringCast("/ip6/0100::1/tcp/54321/")
// All dials to this addr will fail.
// manet.IsPublic is aggressive for IPv6 addresses. Use a NAT64 address.
addr := ma.StringCast("/ip6/64:ff9b::1.2.3.4/tcp/54321/")

p, err := test.RandPeerID()
if err != nil {
Expand Down

0 comments on commit 3dba03a

Please sign in to comment.