There's a [] where the match occurs?

This commit is contained in:
niten 2023-10-15 16:34:35 -07:00
parent 6a6dba816f
commit af3dbd0bed
1 changed files with 1 additions and 1 deletions

View File

@ -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;