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 82d39c9ca4
commit cd372c62ea
1 changed files with 1 additions and 0 deletions

View File

@ -356,6 +356,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}