Common: Add port number validation to TCPScanConfigurationSchema
This commit is contained in:
parent
7f78e52bf2
commit
cb97e021a7
|
@ -94,7 +94,7 @@ class ICMPScanConfigurationSchema(Schema):
|
|||
|
||||
class TCPScanConfigurationSchema(Schema):
|
||||
timeout = fields.Float()
|
||||
ports = fields.List(fields.Int())
|
||||
ports = fields.List(fields.Int(validate=validate.Range(min=0, max=65535)))
|
||||
|
||||
@post_load
|
||||
@freeze_lists
|
||||
|
|
Loading…
Reference in New Issue