rmilter: fix inetSocket

IPv6 address has to be between [] and the port after.
This commit is contained in:
Julien Moutinho
2019-03-02 01:12:21 +00:00
committed by Franz Pletz
parent e4808a6587
commit 2a61c058c6
+2 -2
View File
@@ -8,7 +8,7 @@ let
postfixCfg = config.services.postfix;
cfg = config.services.rmilter;
inetSocket = addr: port: "inet:[${toString port}@${addr}]";
inetSocket = addr: port: "inet:${addr}:${toString port}";
unixSocket = sock: "unix:${sock}";
systemdSocket = if cfg.bindSocket.type == "unix" then cfg.bindSocket.path
@@ -97,7 +97,7 @@ in
bindSocket.address = mkOption {
type = types.str;
default = "::1";
default = "[::1]";
example = "0.0.0.0";
description = ''
Inet address to listen on.