mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-29 01:32:31 +00:00
Fixing IPRange validation for PUT on entities.
This commit is contained in:
@@ -181,7 +181,7 @@ namespace OpenWifi{
|
||||
}
|
||||
|
||||
if(RawObject->has("sourceIP")) {
|
||||
if(!NewEntity.sourceIP.empty() && CIDR::ValidateIpRanges(NewEntity.sourceIP)) {
|
||||
if(!NewEntity.sourceIP.empty() && !CIDR::ValidateIpRanges(NewEntity.sourceIP)) {
|
||||
BadRequest(RESTAPI::Errors::InvalidIPRanges);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"configuration" :
|
||||
{ "uuid": "1" }
|
||||
{ "uuid": 1 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user