Skip to content
Snippets Groups Projects
Commit ae955620 authored by Jesse Norell's avatar Jesse Norell
Browse files

fix conflicting $ip tmp variable name

parent a0c3cdab
No related branches found
No related tags found
No related merge requests found
......@@ -196,9 +196,9 @@ class remoting {
if(trim($remote_user['remote_ips']) == '') {
$remote_allowed=true;
} else {
$ip = inet_pton($_SERVER['REMOTE_ADDR']);
$ip_bin = inet_pton($ip);
foreach($allowed_ips as $allowed) {
if($ip == inet_pton(trim($allowed))) {
if($ip_bin == inet_pton(trim($allowed))) {
$remote_allowed=true;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment