Fixing Max Size of v4 to v6

This commit is contained in:
altf4arnold 2024-02-16 12:05:32 +01:00
parent 2e74952ac6
commit 1e739e3e89
No known key found for this signature in database
GPG Key ID: AE66543374E41C89

View File

@ -592,7 +592,7 @@ class IPRange(PrimaryModel):
))
# Validate maximum size
MAX_SIZE = 2 ** 32 - 1
MAX_SIZE = 2 ** 128 - 1
if int(self.end_address.ip - self.start_address.ip) + 1 > MAX_SIZE:
raise ValidationError(
_("Defined range exceeds maximum supported size ({max_size})").format(max_size=MAX_SIZE)