Skip to content

Commit 878e61c

Browse files
authored
Update normalized IPv6 address to follow RFC 5952 (#1308)
The previous example of a normalized address is invalid because it leaves ambiguous where to pad additional zeros. Example: https://go.dev/play/p/mcJ7sdBl79v
1 parent 71f6491 commit 878e61c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

aip/general/0202.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ comparison. Instead, an [RFC 791][] compliant implementation **must** be used.
5555
The `IPV6` format represents an IP v6 address as governed by [RFC 4291][]. It
5656
**must** only be used on a field of type `string`.
5757

58-
Such a value **may** be normalized by the service to entirely lowercase letters,
59-
and zero-padded partial and empty octets. For example, the value `2001:DB8::`
60-
would be normalized to `2001:0db8:0:0`.
58+
Such a value **may** be normalized by the service to entirely lowercase letters
59+
with zeros compressed, following [RFC 5952][]. For example, the value
60+
`2001:0DB8:0::0` would be normalized to `2001:db8::`.
6161

6262
As such, equivalence comparison **must not** be done via primitive text
6363
comparison. Instead, an [RFC 4291][] compliant implementation **must** be used.

0 commit comments

Comments
 (0)