Common: Add port number validation to ExploitationOptionsConfigurationSchema

This commit is contained in:
Shreya Malviya 2022-07-27 17:44:19 +05:30
parent 6307acb11b
commit 20ab2c3eca
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ class NetworkScanConfigurationSchema(Schema):
class ExploitationOptionsConfigurationSchema(Schema):
http_ports = fields.List(fields.Int())
http_ports = fields.List(fields.Int(validate=validate.Range(min=0, max=65535)))
@post_load
@freeze_lists