diff options
author | lassulus <lassulus@lassul.us> | 2018-12-11 19:57:36 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-12-11 19:57:36 +0100 |
commit | 60b65d17b9a8b83d7d54f1de526c8c436f6913d0 (patch) | |
tree | 1ca6c7091f6fb56c4c08e8324475ffc982b789ed /lib | |
parent | dc64ec0307253b497afc4a99a5e6aca1f1a23be9 (diff) | |
parent | c36a52fb672e585d89db469a075593ef34351207 (diff) |
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/krebs/genipv6.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/krebs/genipv6.nix b/lib/krebs/genipv6.nix index 8d5ca1667..27df8bf55 100644 --- a/lib/krebs/genipv6.nix +++ b/lib/krebs/genipv6.nix @@ -36,7 +36,7 @@ let { suffixLength = addressLength - subnetPrefixLength; }; - hash = s: head (match "0*(.*)" (substring 0 4 (hashString "sha256" s))); + hash = s: head (match "0*(.+)" (substring 0 4 (hashString "sha256" s))); dropLast = n: xs: reverseList (drop n (reverseList xs)); takeLast = n: xs: reverseList (take n (reverseList xs)); |