diff options
author | Sophie Tauchert <sophie@999eagle.moe> | 2023-09-10 15:36:40 +0200 |
---|---|---|
committer | Sophie Tauchert <sophie@999eagle.moe> | 2023-09-18 08:24:37 +0200 |
commit | c693c2fd963b7a4b94958c471baed36bfe563879 (patch) | |
tree | f1ee3b42020716b369b4bd71b38dbe85d3a10a99 /nixos/modules/services/matrix | |
parent | ca1ffe586948c3e5446387fe15ee241d0cd153ec (diff) |
nixos/synapse: simplify replication listener assertion
Diffstat (limited to 'nixos/modules/services/matrix')
-rw-r--r-- | nixos/modules/services/matrix/synapse.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/matrix/synapse.nix b/nixos/modules/services/matrix/synapse.nix index 25d3e3dcd1b9..a90054314863 100644 --- a/nixos/modules/services/matrix/synapse.nix +++ b/nixos/modules/services/matrix/synapse.nix @@ -959,8 +959,8 @@ in { ( listener: listener.port == main.port - && (lib.any (resource: lib.any (name: name == "replication") resource.names) listener.resources) - && (lib.any (bind: bind == main.host || bind == "0.0.0.0") listener.bind_addresses) + && (lib.any (resource: builtins.elem "replication" resource.names) listener.resources) + && (lib.any (bind: bind == main.host || bind == "0.0.0.0" || bind == "::") listener.bind_addresses) ) null cfg.settings.listeners; |