nixpkgs/nixos/modules/services/networking/ssh
Maximilian Bosch 7e45990c06
nixos/sshd: fix socket activated ports when using ListenAddress
Noticed that issue while reviewing #275633: when declaring
`ListenAddress host` without a port, all ports declared by
`Port`/`cfg.ports` will be used with `host` according to
`sshd_config(5)`.

However, if this is done and socket activation is used, only a socket
for port 22 is created instead of a sockets for each port from
`Port`/`cfg.ports`. This patch corrects that behavior.

Also added a regression test for this case.
2024-01-03 19:42:45 +01:00
..
lshd.nix treewide: use optionalString instead of 'then ""' 2023-06-24 20:19:19 +02:00
sshd.nix nixos/sshd: fix socket activated ports when using ListenAddress 2024-01-03 19:42:45 +01:00