Skip to content

Commit 4b10d55

Browse files
committed
Make bytes_16_to_ip strictly follow RFC 5952
1 parent 9b2557c commit 4b10d55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

draft-denis-ipcrypt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ function bytes_16_to_ip(bytes16):
868868
parts = []
869869
i = 0
870870
while i < 8:
871-
if best_run_length > 1 and i == best_run_start:
871+
if best_run_length >= 2 and i == best_run_start:
872872
// Insert :: for compressed zeros
873873
parts.append("" if i == 0 else ":")
874874
parts.append("")

0 commit comments

Comments
 (0)