mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
nixos/sshd: Use port type instead of int
This change leads to an additional check of the port number at build time, making invalid port values impossible.
This commit is contained in:
parent
161c0765ad
commit
c98a7bf8f2
@ -130,7 +130,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
ports = mkOption {
|
ports = mkOption {
|
||||||
type = types.listOf types.int;
|
type = types.listOf types.port;
|
||||||
default = [22];
|
default = [22];
|
||||||
description = ''
|
description = ''
|
||||||
Specifies on which ports the SSH daemon listens.
|
Specifies on which ports the SSH daemon listens.
|
||||||
|
Loading…
Reference in New Issue
Block a user