summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/captiveportal/index.php')
-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