Const
Matches dns4 addresses.
Use DNS instead to match any type of DNS address.
import { multiaddr } from '@multiformats/multiaddr'import { DNS4 } from '@multiformats/multiaddr-matcher'DNS4.matches(multiaddr('/dns4/example.org')) // true Copy
import { multiaddr } from '@multiformats/multiaddr'import { DNS4 } from '@multiformats/multiaddr-matcher'DNS4.matches(multiaddr('/dns4/example.org')) // true
Matches dns4 addresses.
Use DNS instead to match any type of DNS address.