mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-01 02:58:00 +00:00
Fix IP range check.
Signed-off-by: acapparelli1 <adam.capparelli@kinarasystems.com>
This commit is contained in:
@@ -187,7 +187,7 @@ namespace OpenWifi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!NewObject.sourceIP.empty() && CIDR::ValidateIpRanges(NewObject.sourceIP)) {
|
if (NewObject.sourceIP.empty() || !CIDR::ValidateIpRanges(NewObject.sourceIP)) {
|
||||||
return BadRequest(RESTAPI::Errors::InvalidIPRanges);
|
return BadRequest(RESTAPI::Errors::InvalidIPRanges);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user