mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
* Remove debugging echo.
* ruleno should now be the ip.
This commit is contained in:
parent
62edf26ff1
commit
427d205bde
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user