Add more debug information.

This commit is contained in:
FusionPBX 2022-07-27 13:40:55 -06:00 committed by GitHub
parent 5a11c55553
commit 3ee97e0d76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -92,6 +92,10 @@
}
}
//test a specific address
//$ip_address = '10.7.0.253';
//$result = access_allowed($ip_address);
//get the settings
//$setting_name = $_SESSION['category']['subcategory']['text'];
@ -132,7 +136,6 @@
//debug info
if ($debug) {
echo "possible hacker\n";
echo "network-ip ".$array['network-ip']."\n";
echo "to-host ".$array['to-host']."\n";
echo "\n";
@ -417,7 +420,16 @@
//use the ip address to get the authorized nodes
foreach($allowed_nodes as $row) {
if (check_cidr($row['node_cidr'], $ip_address)) {
//debug info
if ($debug) {
print_r($row);
echo $ip_address."\n";
}
//set the allowed to true
$allowed = true;
//exit the loop
break;
}
}