From fb516dda98a132f55587efee6e93dde4008b7e32 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Mon, 9 Aug 2010 17:11:13 -0400 Subject: don't include 255.255.255.255 here --- etc/inc/captiveportal.inc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'etc/inc/captiveportal.inc') diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 0d3853b..9918f1f 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -421,9 +421,15 @@ add 65307 set 1 deny layer2 not mac-type ip EOD; $rulenum = 65310; - $ips = "255.255.255.255 "; - foreach ($cpips as $cpip) - $ips .= "or {$cpip} "; + $ipcount = 0; + foreach ($cpips as $cpip) { + if($ipcount == 0) { + $ips = "{$cpip} "; + } else { + $ips .= "or {$cpip} "; + } + $ipcount++; + } $ips = "{ {$ips} }"; $cprules .= "add {$rulenum} set 1 pass ip from any to {$ips} in\n"; $rulenum++; -- cgit v1.1