lib.normalize-ip6-addr: only normalize addrs w/o ::

This commit is contained in:
tv 2018-12-11 22:47:27 +01:00
parent facbcdafc8
commit b6e1cef6a5

View file

@ -107,7 +107,11 @@ let
in in
a: concatStringsSep ":" (map f (splitString ":" a)); a: concatStringsSep ":" (map f (splitString ":" a));
in in
a: toLower (group-zeros (drop-leading-zeros a)); a:
toLower
(if test ".*::.*" a
then a
else group-zeros (drop-leading-zeros a));
}; };
in in