summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-15 20:25:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-15 20:25:43 +0000
commit427d205bde1e6eac2a3d6b39b308fb4fdbac8d35 (patch)
tree566fe91f3d00ff6f24e7af4a4c5b7085869ad2ed
parent62edf26ff1e0be1c671045782386ecb6c7bfb0e6 (diff)
downloadpfsense-427d205bde1e6eac2a3d6b39b308fb4fdbac8d35.zip
pfsense-427d205bde1e6eac2a3d6b39b308fb4fdbac8d35.tar.gz
* Remove debugging echo.
* ruleno should now be the ip.
-rw-r--r--etc/inc/captiveportal.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 1880a46..786250b 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -422,12 +422,9 @@ 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");
-
+ fwrite($fd, $ipent['ip'] . "," . $ipent['ip'] ."\n");
/* insert pf table item to allow traffic */
mwexec("echo \"pfctl -t captiveportal -T add {$ipent['ip']} \"> /tmp/tmp");
- echo "Adding {$ipent['ip']}";
mwexec("/sbin/pfctl -t captiveportal -T add {$ipent['ip']}");
$ruleno = $ip;
OpenPOWER on IntegriCloud