From 61c5cd3625594371f3641013c7587af8f4d85d79 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 15 Jul 2005 21:35:21 +0000 Subject: Correctly check for allowed ip's --- usr/local/captiveportal/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr') 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) { -- cgit v1.1