Skip to content

Commit 3dba03a

Browse files
authored
swarm: fix addr for TestBlackHoledAddrBlocked (#2803)
1 parent 024293c commit 3dba03a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

p2p/net/swarm/swarm_dial_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,9 @@ func TestBlackHoledAddrBlocked(t *testing.T) {
366366
n := 3
367367
s.bhd.ipv6 = &blackHoleFilter{n: n, minSuccesses: 1, name: "IPv6"}
368368

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

372373
p, err := test.RandPeerID()
373374
if err != nil {

0 commit comments

Comments
 (0)