mirror of
				https://github.com/Telecominfraproject/wlan-cloud-owprov.git
				synced 2025-10-31 18:48:09 +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); | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 acapparelli1
					acapparelli1