Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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