nixos/3proxy: use types.port
This commit is contained in:
@@ -83,7 +83,7 @@ in
|
||||
'';
|
||||
};
|
||||
bindPort = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.int;
|
||||
type = lib.types.nullOr lib.types.port;
|
||||
default = null;
|
||||
example = 3128;
|
||||
description = ''
|
||||
@@ -192,7 +192,7 @@ in
|
||||
'';
|
||||
};
|
||||
targetPorts = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.int;
|
||||
type = lib.types.listOf lib.types.port;
|
||||
default = [ ];
|
||||
example = [
|
||||
80
|
||||
|
||||
Reference in New Issue
Block a user