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}