From af3dbd0bed0da50d8b13d01256a328b15d9eb7c5 Mon Sep 17 00:00:00 2001 From: niten Date: Sun, 15 Oct 2023 16:34:35 -0700 Subject: [PATCH] There's a [] where the match occurs? --- mail-server.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail-server.nix b/mail-server.nix index ee90482..5f3a5ea 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -310,7 +310,7 @@ in { isIpv6 = net: !isNull (builtins.match ".+:.+" net); addIpv6Escape = net: let components = builtins.split "/" net; - in "[${elemAt components 0}]/${elemAt components 1}"; + in "[${elemAt components 0}]/${elemAt components 2}"; escapeIpv6 = net: if isIpv6 net then addIpv6Escape net else net; in map escapeIpv6 cfg.trusted-networks;