1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

modules/services/networking/ssh/sshd.nix: configure AddressFamily properly

Explicitly restrict sshd to use of IPv4 addresses if IPv6 support is not enabled.
This commit is contained in:
Peter Simons 2012-10-24 19:01:27 +02:00
parent ecd7bc9310
commit b43e219aeb

View file

@ -368,6 +368,7 @@ in
UsePAM ${if cfg.usePAM then "yes" else "no"}
AddressFamily ${if config.networking.enableIPv6 then "any" else "inet"}
${concatMapStrings (port: ''
Port ${toString port}
'') cfg.ports}