X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FJSONSchema.pm;h=de2a0bd993957343e4366a2e41fc5be485b98dab;hp=817ff4cce51e210af3f92207fc91497ee18324b5;hb=0526cc2d7902555e08b5aea830141e349b27062e;hpb=303a9b34ea148644e2393a11452271b4c708a7c5 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; }