From ee3a518fd74bb5bf0335bb5aba1767c8d49fcf51 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Tue, 13 May 2025 16:32:58 +0100 Subject: [PATCH] docs/cidrnetmask: Address confusing note about IPv6 (#37029) --- website/docs/language/functions/cidrnetmask.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/language/functions/cidrnetmask.mdx b/website/docs/language/functions/cidrnetmask.mdx index f8d5d71321..f66dc34c9e 100644 --- a/website/docs/language/functions/cidrnetmask.mdx +++ b/website/docs/language/functions/cidrnetmask.mdx @@ -20,8 +20,8 @@ cidrnetmask(prefix) The result is a subnet address formatted in the conventional dotted-decimal IPv4 address syntax, as expected by some software. -CIDR notation is the only valid notation for IPv6 addresses, so `cidrnetmask` -produces an error if given an IPv6 address. +The `cidrnetmask` function only accepts IPv4 addresses in CIDR notation. +If you use an IPv6 address, `cidrnetmask` returns an error. -> **Note:** As a historical accident, this function interprets IPv4 address octets that have leading zeros as decimal numbers, which is contrary to some