Need to be more explicit...
This commit is contained in:
parent
f8fda9c405
commit
6a6dba816f
|
@ -307,7 +307,7 @@ in {
|
||||||
local-domains = cfg.extra-domains;
|
local-domains = cfg.extra-domains;
|
||||||
hostname = cfg.smtp.hostname;
|
hostname = cfg.smtp.hostname;
|
||||||
trusted-networks = let
|
trusted-networks = let
|
||||||
isIpv6 = net: !isNull (builtins.match ":" net);
|
isIpv6 = net: !isNull (builtins.match ".+:.+" net);
|
||||||
addIpv6Escape = net:
|
addIpv6Escape = net:
|
||||||
let components = builtins.split "/" net;
|
let components = builtins.split "/" net;
|
||||||
in "[${elemAt components 0}]/${elemAt components 1}";
|
in "[${elemAt components 0}]/${elemAt components 1}";
|
||||||
|
|
Loading…
Reference in New Issue