projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
303a9b3
)
allow /32 ipv4 cidrs
author
Wolfgang Bumiller
<w.bumiller@proxmox.com>
Fri, 16 Oct 2015 07:28:07 +0000
(09:28 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Fri, 16 Oct 2015 07:52:26 +0000
(09:52 +0200)
src/PVE/JSONSchema.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/JSONSchema.pm
b/src/PVE/JSONSchema.pm
index 817ff4cce51e210af3f92207fc91497ee18324b5..de2a0bd993957343e4366a2e41fc5be485b98dab 100644
(file)
--- 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;
}