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:
parent
ecd7bc9310
commit
b43e219aeb
|
@ -368,6 +368,7 @@ in
|
||||||
|
|
||||||
UsePAM ${if cfg.usePAM then "yes" else "no"}
|
UsePAM ${if cfg.usePAM then "yes" else "no"}
|
||||||
|
|
||||||
|
AddressFamily ${if config.networking.enableIPv6 then "any" else "inet"}
|
||||||
${concatMapStrings (port: ''
|
${concatMapStrings (port: ''
|
||||||
Port ${toString port}
|
Port ${toString port}
|
||||||
'') cfg.ports}
|
'') cfg.ports}
|
||||||
|
|
Loading…
Reference in New Issue