Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Checks whether an IP address has version number 4.

is_v4(x:ip) -> bool

The ipv4 function checks whether the version number of a given IP address x is 4.

from {
x: 1.2.3.4.is_v4(),
y: ::1.is_v4(),
}
{
x: true,
y: false,
}

Last updated: