Skip to content

Commit 2f658a5

Browse files
committed
FIX: ip in range
1 parent 1df691c commit 2f658a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Validators/ApiKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static function check(RequestInterface $request, object $petition = null,
4545
if ($list_ip) {
4646
if (strpos($list_ip, '/') !== false) {
4747
//check IP is in the range
48-
$found_address = \Daycry\RestServer\Libraries\CheckIp::ipv4_in_range(trim($list_ip), $row->ip_addresses);
48+
$found_address = \Daycry\RestServer\Libraries\CheckIp::ipv4_in_range(trim($ip_address), trim($list_ip));
4949
} elseif ($ip_address === trim($list_ip)) {
5050
// there is a match, set the the value to TRUE and break out of the loop
5151
$found_address = true;

0 commit comments

Comments
 (0)