]> git.proxmox.com Git - pve-common.git/commitdiff
schema: allow ipv6 prefix lengths up to 128
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 29 Jan 2018 14:06:30 +0000 (15:06 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 5 Feb 2018 08:49:12 +0000 (09:49 +0100)
There's no technical reason for *us* to limit this to 120.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/JSONSchema.pm

index c09a9f474a5413e7c1caa35bd5b9febdebf7eb91..4bc7cbb5b75235d59962e0a19a973bb5ef1de170 100644 (file)
@@ -263,7 +263,7 @@ register_format('CIDRv6', \&pve_verify_cidrv6);
 sub pve_verify_cidrv6 {
     my ($cidr, $noerr) = @_;
 
-    if ($cidr =~ m!^(?:$IPV6RE)(?:/(\d+))$! && ($1 > 7) &&  ($1 <= 120)) {
+    if ($cidr =~ m!^(?:$IPV6RE)(?:/(\d+))$! && ($1 > 7) && ($1 <= 128)) {
        return $cidr;
     }