Update allowlist_test.go

Co-authored-by: Marten Seemann <martenseemann@gmail.com>
This commit is contained in:
Marco Munizaga 2022-07-03 09:27:18 -07:00 committed by GitHub
parent 65deaac7da
commit 68b2dcdbf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {