summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_mac_edit.php
diff options
context:
space:
mode:
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 1ac2e86..3e92bad 100755
--- a/usr/local/www/services_captiveportal_mac_edit.php
+++ b/usr/local/www/services_captiveportal_mac_edit.php
@@ -136,7 +136,14 @@ if ($_POST) {
file_put_contents("{$g['tmp_path']}/tmpmacedit{$id}", $rules);
mwexec("/sbin/ipfw -q {$g['tmp_path']}/tmpmacedit{$id}");
@unlink("{$g['tmp_path']}/tmpmacedit{$id}");
+ $rules = "delete {$ruleno}\n";
+ $rules .= "delete " . ++$ruleno . "\n";
}
+
+ $rules .= captiveportal_passthrumac_configure_entry($mac);
+ file_put_contents("{$g['tmp_path']}/tmpmacedit{$id}", $rules);
+ mwexec("/sbin/ipfw -q {$g['tmp_path']}/tmpmacedit{$id}");
+ @unlink("{$g['tmp_path']}/tmpmacedit{$id}");
header("Location: services_captiveportal_mac.php");
exit;
OpenPOWER on IntegriCloud