diff options
-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) { |