Common: Add validation that timeout >= 0 in TCPScanConfigurationSchema
This commit is contained in:
parent
3533074a61
commit
fbf3e15f02
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue