Canonicalize IPv6 text before comparing or logging addresses
Canonical IPv6 text suppresses leading zeroes in each 16-bit field while representing a single all-zero field as 0. The double-colon form compresses the longest eligible zero run, never a single zero field, and selects the leftmost run when equal-length runs tie.
Read the guide