forked from p15670423/monkey
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):
|
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
|
||||||
|
|
Loading…
Reference in New Issue