There's a [] where the match occurs?
This commit is contained in:
parent
6a6dba816f
commit
af3dbd0bed
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue