diff options
author | tv <tv@krebsco.de> | 2018-12-11 19:52:12 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-12-11 19:52:12 +0100 |
commit | c36a52fb672e585d89db469a075593ef34351207 (patch) | |
tree | 6602879835fba4914d01bd2bfcbb5906b934407a /lib/krebs | |
parent | 172a746c3a4735f1f7875f7169b53e8b3df82269 (diff) |
lib.krebs.genipv6 hash: 0000 -> 0 instead of ε
Diffstat (limited to 'lib/krebs')
-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)); |