Fix invalid generated dn42 IPv6 for pulsebert

Before the C3D2 prefix ended in :: and the final address contained :::
which is invalid.
This commit is contained in:
Sandro - 2022-07-09 23:31:18 +02:00
parent 69a47c0b7f
commit 7591e0a8a4
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 2 additions and 2 deletions

View File

@ -3,9 +3,9 @@
{ zentralwerk, hostRegistry, config, options, lib, pkgs, ... }:
let
hqPrefix64 = builtins.head (
hqPrefix64 = lib.removeSuffix "::" (builtins.head (
builtins.split "/" zentralwerk.lib.config.site.net.c3d2.subnets6.dn42
);
));
# Generate a deterministic IPv6 address for a 64 bit prefix
# and seed string. Prefix must not contain trailing ':'.