Use types.port where applicable
This changes the type of all options that specify ports to `types.port`. This type restricts values to between 0 and 65535.
This commit is contained in:
parent
3d645c0ce1
commit
ed4f66185f
5 changed files with 6 additions and 6 deletions
|
|
@ -21,7 +21,7 @@ let
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.nullOr types.int;
|
||||
type = types.nullOr types.port;
|
||||
default = null;
|
||||
description = "Specifies port number to connect on remote host.";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue