summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_mac_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-12-17 10:44:41 +0000
committerErmal <eri@pfsense.org>2012-12-17 10:44:41 +0000
commitaea564088a335bef9c9d6fb55409dd0ad65b3049 (patch)
treec78785555ef59e7d0fb85190ad652b42550cc712 /usr/local/www/services_captiveportal_mac_edit.php
parent0faf09f7ffdf8c188ce72b6c5cc4f33bc9e069a8 (diff)
downloadpfsense-aea564088a335bef9c9d6fb55409dd0ad65b3049.zip
pfsense-aea564088a335bef9c9d6fb55409dd0ad65b3049.tar.gz
Separate ipfw rule no db from limiter ones. Since ipfw has per instance feature while dummynet/limiters is a single instance.
Diffstat (limited to 'usr/local/www/services_captiveportal_mac_edit.php')
-rwxr-xr-xusr/local/www/services_captiveportal_mac_edit.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal_mac_edit.php b/usr/local/www/services_captiveportal_mac_edit.php
index e4bf5a4..90c2ee9 100755
--- a/usr/local/www/services_captiveportal_mac_edit.php
+++ b/usr/local/www/services_captiveportal_mac_edit.php
@@ -144,6 +144,13 @@ if ($_POST) {
$ruleno = captiveportal_get_ipfw_passthru_ruleno($oldmac);
if ($ruleno) {
captiveportal_free_ipfw_ruleno($ruleno);
+ $pipeno = captiveportal_get_dn_passthru_ruleno($_POST['delmac']);
+ if ($pipeno) {
+ captiveportal_free_dn_ruleno($pipeno);
+ $rules .= "pipe delete {$pipeno}\n";
+ ++$pipeno;
+ $rules .= "pipe delete {$pipeno}\n";
+ }
$rules = "delete {$ruleno}\n";
$rules .= "delete " . ++$ruleno . "\n";
}
OpenPOWER on IntegriCloud