Fix invalid IPv6 notation

This commit is contained in:
2024-01-05 09:11:00 +01:00
parent 524ab50df7
commit 134e27feb6
2 changed files with 6 additions and 3 deletions

View File

@ -128,6 +128,6 @@ function sanitizeMask(version: 4 | 6, mask?: string): number | undefined {
if (version === 4) {
return value < 0 || value > 32 ? 32 : value;
} else {
return value < 0 || value > 64 ? 64 : value;
return value < 0 || value > 128 ? 128 : value;
}
}