diff --git a/p2p/net/swarm/swarm_dial_test.go b/p2p/net/swarm/swarm_dial_test.go index 021c368bd6..83f94b9d91 100644 --- a/p2p/net/swarm/swarm_dial_test.go +++ b/p2p/net/swarm/swarm_dial_test.go @@ -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 {