isIpv6SpecialPurpose
isIpv6SpecialPurpose(
address):boolean
Defined in: packages/net-address/src/ipv6/classify-ipv6.ts:161
Whether the address falls in any enumerated special-purpose block.
An SSRF guard wants this on the parsed address, and must also unwrap an
IPv4-mapped literal with ipv4FromIpv6 before classifying:
::ffff:127.0.0.1 is loopback, and no substring test for 127. finds it.
Parameters
Section titled “Parameters”address
Section titled “address”Returns
Section titled “Returns”boolean