summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-15 21:35:21 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-15 21:35:21 +0000
commit61c5cd3625594371f3641013c7587af8f4d85d79 (patch)
tree87d3f4b97917a062a7223952c77ace4c8b419bc1 /usr
parente4dff6e5a111246582286bed703287f29ba171c8 (diff)
downloadpfsense-61c5cd3625594371f3641013c7587af8f4d85d79.zip
pfsense-61c5cd3625594371f3641013c7587af8f4d85d79.tar.gz
Correctly check for allowed ip's
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/captiveportal/index.php3
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) {
OpenPOWER on IntegriCloud