mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
nixos/synapse: simplify replication listener assertion
This commit is contained in:
parent
ca1ffe5869
commit
c693c2fd96
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user