Skip to content

Commit

Permalink
Update allowlist_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
  • Loading branch information
MarcoPolo and marten-seemann authored Jul 3, 2022
1 parent 50c7eb7 commit 0a1e1ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/host/resource-manager/allowlist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func ExampleWithAllowlistedMultiaddrs() {
multiaddr.StringCast("/ip4/1.2.3.4"),
// Only the specified peer from this address
multiaddr.StringCast("/ip4/2.2.3.4/p2p/" + peer.Encode(somePeer)),
// Only peers from this IP Address range
// Only peers from this 1.2.3.0/24 IP address range
multiaddr.StringCast("/ip4/1.2.3.0/ipcidr/24"),
}))
if err != nil {
Expand Down

0 comments on commit 0a1e1ea

Please sign in to comment.