lib.normalize-ip6-addr: no :: for single section
This commit is contained in:
parent
474e3e2e45
commit
35be9c66bf
@ -93,7 +93,13 @@ let
|
|||||||
in
|
in
|
||||||
if max.pos == 0
|
if max.pos == 0
|
||||||
then a
|
then a
|
||||||
else "${concatStringsSep ":" lhs}::${concatStringsSep ":" rhs}";
|
else let
|
||||||
|
sep =
|
||||||
|
if 8 - (length lhs + length rhs) == 1
|
||||||
|
then ":0:"
|
||||||
|
else "::";
|
||||||
|
in
|
||||||
|
"${concatStringsSep ":" lhs}${sep}${concatStringsSep ":" rhs}";
|
||||||
|
|
||||||
drop-leading-zeros =
|
drop-leading-zeros =
|
||||||
let
|
let
|
||||||
|
Loading…
Reference in New Issue
Block a user