summaryrefslogtreecommitdiffstats
path: root/etc/inc/captiveportal.inc
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-07-04 21:00:59 +0000
committerBill Marquette <billm@pfsense.org>2005-07-04 21:00:59 +0000
commit669e1adb5b8c4efce292681f83b8a76806e383bb (patch)
treebdc8578c5542166b69567415eb38b94507ae9e74 /etc/inc/captiveportal.inc
parent63637de9323161beccf84ed60f69696ce11a5c24 (diff)
downloadpfsense-669e1adb5b8c4efce292681f83b8a76806e383bb.zip
pfsense-669e1adb5b8c4efce292681f83b8a76806e383bb.tar.gz
Various code cleanups and a few actual bugfixes courtesy of Zend
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r--etc/inc/captiveportal.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 449b1dd..dd8a7c1 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -319,6 +319,7 @@ function captiveportal_disconnect_client($id) {
syslog(LOG_INFO,"Authenticated user $cpdb[$i][4] disconnected");
}
+ /* XXX: What's $ip? This can't be working?!?!?! --billm */
mwexec("/sbin/pfctl -t captiveportal -T delete {$ip}");
unset($cpdb[$i]);
@@ -417,6 +418,7 @@ function captiveportal_allowedip_configure() {
foreach ($config['captiveportal']['allowedip'] as $ipent) {
/* record allowed ip so it can be recognized and removed later */
+ /* XXX: What's $ruleno? This can't be working as expected!?!?! --billm */
fwrite($fd, $ipent['ip'] . "," . $ruleno ."\n");
/* insert pf table item to allow traffic */
OpenPOWER on IntegriCloud