Need to be more explicit...

This commit is contained in:
niten 2023-10-14 23:53:20 -07:00
parent f8fda9c405
commit 6a6dba816f
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ in {
local-domains = cfg.extra-domains;
hostname = cfg.smtp.hostname;
trusted-networks = let
isIpv6 = net: !isNull (builtins.match ":" net);
isIpv6 = net: !isNull (builtins.match ".+:.+" net);
addIpv6Escape = net:
let components = builtins.split "/" net;
in "[${elemAt components 0}]/${elemAt components 1}";