Const
Matches ip6 addresses.
Use IP instead to match any ip4/ip6 address.
import { multiaddr } from '@multiformats/multiaddr'import { IP6 } from '@multiformats/multiaddr-matcher'const ma = multiaddr('/ip6/fe80::1cc1:a3b8:322f:cf22')IP6.matches(ma) // true Copy
import { multiaddr } from '@multiformats/multiaddr'import { IP6 } from '@multiformats/multiaddr-matcher'const ma = multiaddr('/ip6/fe80::1cc1:a3b8:322f:cf22')IP6.matches(ma) // true
Matches ip6 addresses.
Use IP instead to match any ip4/ip6 address.