diff options
author | Ermal <eri@pfsense.org> | 2010-06-01 20:31:56 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-06-01 20:31:56 +0000 |
commit | 4d349edec5f20b7f94d5ed0c97f382b9e082081f (patch) | |
tree | 6e94a1f84c8c31b9af14bc56484191baf0b991ab /usr/local/www/services_captiveportal_mac.php | |
parent | 3bf8eb9345c930159f60bdadf10f670730a44afa (diff) | |
download | pfsense-4d349edec5f20b7f94d5ed0c97f382b9e082081f.zip pfsense-4d349edec5f20b7f94d5ed0c97f382b9e082081f.tar.gz |
Free ipfw ruleno so it can be reused. Propperly delete passthrough mac entries that are not used.
Diffstat (limited to 'usr/local/www/services_captiveportal_mac.php')
-rwxr-xr-x | usr/local/www/services_captiveportal_mac.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal_mac.php b/usr/local/www/services_captiveportal_mac.php index 3e459f4..55268cf 100755 --- a/usr/local/www/services_captiveportal_mac.php +++ b/usr/local/www/services_captiveportal_mac.php @@ -83,6 +83,7 @@ if ($_POST) { if ($found == true) { $ruleno = captiveportal_get_ipfw_passthru_ruleno($_POST['delmac']); if ($ruleno) { + captiveportal_free_ipfw_ruleno($ruleno, true); mwexec("/sbin/ipfw delete {$ruleno}; /sbin/ipfw delete " . ++$ruleno); } unset($a_passthrumacs[$idx]); |