From: Wolfgang Bumiller Date: Fri, 16 Oct 2015 07:28:07 +0000 (+0200) Subject: allow /32 ipv4 cidrs X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=0526cc2d7902555e08b5aea830141e349b27062e allow /32 ipv4 cidrs --- diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 817ff4c..de2a0bd 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -248,7 +248,7 @@ register_format('CIDRv4', \&pve_verify_cidrv4); sub pve_verify_cidrv4 { my ($cidr, $noerr) = @_; - if ($cidr =~ m!^(?:$IPV4RE)(?:/(\d+))$! && ($1 > 7) && ($1 < 32)) { + if ($cidr =~ m!^(?:$IPV4RE)(?:/(\d+))$! && ($1 > 7) && ($1 <= 32)) { return $cidr; }