Common: Add validation that timeout >= 0 in TCPScanConfigurationSchema

This commit is contained in:
Shreya Malviya 2022-07-27 16:46:48 +05:30
parent 3533074a61
commit fbf3e15f02
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class ICMPScanConfigurationSchema(Schema):
class TCPScanConfigurationSchema(Schema):
timeout = fields.Float()
timeout = fields.Float(validate=validate.Range(min=0))
ports = fields.List(fields.Int(validate=validate.Range(min=0, max=65535)))
@post_load