isInNetEx()

Microsoft IPv6 extension. True if ip is inside the CIDR prefix, e.g. isInNetEx(ip, "2001:db8::/32").

isInNetEx(ip, prefix)  →  boolean

Takes a CIDR prefix instead of a mask. Only in engines with the “Ex” extensions.

Example

if (isInNetEx(host, "2001:db8::/32")) { /* ... */ }

Availability

Derived from each engine's vendored helper library plus its native bindings (see engines).
Functionchromium
<=51
chromium
>=52
firefox
all
pacparser
<=1.4.6
pacparser
1.5.0
pacparser
>=1.5.1
reference
all
isInNetExyesyesnoyesyesyesno

Related rules