diff options
author | Chris Buechler <cmb@pfsense.org> | 2010-08-09 17:11:13 -0400 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2010-08-09 17:11:13 -0400 |
commit | fb516dda98a132f55587efee6e93dde4008b7e32 (patch) | |
tree | 0188b38c4674aeb6f14d3c501da37d82de3ac09a /etc/inc/captiveportal.inc | |
parent | 85405c11a0ab41d26e5016b055b2f1188317c8f2 (diff) | |
download | pfsense-fb516dda98a132f55587efee6e93dde4008b7e32.zip pfsense-fb516dda98a132f55587efee6e93dde4008b7e32.tar.gz |
don't include 255.255.255.255 here
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 12 |
1 files changed, 9 insertions, 3 deletions
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++; |