From 427d205bde1e6eac2a3d6b39b308fb4fdbac8d35 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 15 Jul 2005 20:25:43 +0000 Subject: [PATCH] * Remove debugging echo. * ruleno should now be the ip. --- etc/inc/captiveportal.inc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 1880a464be..786250b788 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;