diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-15 21:35:21 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-15 21:35:21 +0000 |
commit | 61c5cd3625594371f3641013c7587af8f4d85d79 (patch) | |
tree | 87d3f4b97917a062a7223952c77ace4c8b419bc1 /usr/local/captiveportal/index.php | |
parent | e4dff6e5a111246582286bed703287f29ba171c8 (diff) | |
download | pfsense-61c5cd3625594371f3641013c7587af8f4d85d79.zip pfsense-61c5cd3625594371f3641013c7587af8f4d85d79.tar.gz |
Correctly check for allowed ip's
Diffstat (limited to 'usr/local/captiveportal/index.php')
-rwxr-xr-x | usr/local/captiveportal/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index 72eaff8..7c97f815 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -65,8 +65,9 @@ if (!$clientmac && !isset($config['captiveportal']['nomacfilter'])) { */ if($config['captiveportal']['allowedip'] <> "") foreach($config['captiveportal']['allowedip'] as $ip) { - if($clientip == $ip) + if($clientip == $ip['ip']) { $allowed_ip = true; + } } if ($clientmac && portal_mac_fixed($clientmac) or $allowed_ip == true) { |