Common: Add port number validation to TCPScanConfigurationSchema

This commit is contained in:
Shreya Malviya 2022-07-27 16:02:05 +05:30
parent 7f78e52bf2
commit cb97e021a7
1 changed files with 1 additions and 1 deletions

View File

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