mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 05:37:27 +03:00
rmilter: fix inetSocket
IPv6 address has to be between [] and the port after.
This commit is contained in:
parent
e4808a6587
commit
2a61c058c6
@ -8,7 +8,7 @@ let
|
|||||||
postfixCfg = config.services.postfix;
|
postfixCfg = config.services.postfix;
|
||||||
cfg = config.services.rmilter;
|
cfg = config.services.rmilter;
|
||||||
|
|
||||||
inetSocket = addr: port: "inet:[${toString port}@${addr}]";
|
inetSocket = addr: port: "inet:${addr}:${toString port}";
|
||||||
unixSocket = sock: "unix:${sock}";
|
unixSocket = sock: "unix:${sock}";
|
||||||
|
|
||||||
systemdSocket = if cfg.bindSocket.type == "unix" then cfg.bindSocket.path
|
systemdSocket = if cfg.bindSocket.type == "unix" then cfg.bindSocket.path
|
||||||
@ -97,7 +97,7 @@ in
|
|||||||
|
|
||||||
bindSocket.address = mkOption {
|
bindSocket.address = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "::1";
|
default = "[::1]";
|
||||||
example = "0.0.0.0";
|
example = "0.0.0.0";
|
||||||
description = ''
|
description = ''
|
||||||
Inet address to listen on.
|
Inet address to listen on.
|
||||||
|
Loading…
Reference in New Issue
Block a user