IP6: MultiaddrMatcher = ...

Matches ip6 addresses.

Use IP instead to match any ip4/ip6 address.

Example

import { multiaddr } from '@multiformats/multiaddr'
import { IP6 } from '@multiformats/multiaddr-matcher'

const ma = multiaddr('/ip6/fe80::1cc1:a3b8:322f:cf22')

IP6.matches(ma) // true