IP4: MultiaddrMatcher = ...

Matches ip4 addresses.

Use IP instead to match any ip4/ip6 address.

Example

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

const ma = multiaddr('/ip4/123.123.123.123')

IP4.matches(ma) // true