nixos/synapse: simplify replication listener assertion

This commit is contained in:
Sophie Tauchert 2023-09-10 15:36:40 +02:00
parent ca1ffe5869
commit c693c2fd96
No known key found for this signature in database
GPG Key ID: 52701DE5F5F51125

View File

@ -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;