Fix CIDR check to use correct variable

This commit is contained in:
FusionPBX
2026-02-16 15:07:13 -07:00
committed by GitHub
parent a04ee72d21
commit 23ecec6162
+1 -1
View File
@@ -31,7 +31,7 @@
$cidr_array = $settings->get('domain', 'cidr'); $cidr_array = $settings->get('domain', 'cidr');
if (!empty($cidr_array)) { if (!empty($cidr_array)) {
foreach($cidr_array as $cidr_value) { foreach($cidr_array as $cidr_value) {
if (check_cidr($cidr, $_SERVER['REMOTE_ADDR'])) { if (check_cidr($cidr_value, $_SERVER['REMOTE_ADDR'])) {
$found = true; $found = true;
break; break;
} }