Skip to content

Commit

Permalink
test: cover dns addresses in TestAddrFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumemichel committed Feb 20, 2025
1 parent 09c631e commit 97e3f7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dht_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2416,12 +2416,20 @@ func TestAddrFilter(t *testing.T) {
ma.StringCast("/ip4/1.2.3.1/tcp/123"),
ma.StringCast("/ip4/160.160.160.160/tcp/1600"),
ma.StringCast("/ip6/2001::10/tcp/123"),
ma.StringCast("/dns/libp2p.io/tcp/1234"),
ma.StringCast("/dns4/libp2p.io/tcp/1234"),
ma.StringCast("/dns6/libp2p.io/tcp/1234"),
ma.StringCast("/dnsaddr/bootstrap.libp2p.io"),
}
privAddrs := []ma.Multiaddr{
ma.StringCast("/ip4/192.168.1.100/tcp/123"),
ma.StringCast("/ip4/172.16.10.10/tcp/123"),
ma.StringCast("/ip4/10.10.10.10/tcp/123"),
ma.StringCast("/ip6/fc00::10/tcp/123"),
ma.StringCast("/dns/libp2p.local/tcp/1234"),
ma.StringCast("/dns4/libp2p.local/tcp/1234"),
ma.StringCast("/dns6/libp2p.local/tcp/1234"),
ma.StringCast("/dnsaddr/bootstrap.libp2p.local"),
}
loopbackAddrs := []ma.Multiaddr{
ma.StringCast("/ip4/127.0.0.100/tcp/123"),
Expand Down

0 comments on commit 97e3f7b

Please sign in to comment.