Const
Matches ip4 addresses.
Use IP instead to match any ip4/ip6 address.
import { multiaddr } from '@multiformats/multiaddr'import { IP4 } from '@multiformats/multiaddr-matcher'const ma = multiaddr('/ip4/123.123.123.123')IP4.matches(ma) // true Copy
import { multiaddr } from '@multiformats/multiaddr'import { IP4 } from '@multiformats/multiaddr-matcher'const ma = multiaddr('/ip4/123.123.123.123')IP4.matches(ma) // true
Matches ip4 addresses.
Use IP instead to match any ip4/ip6 address.