summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_mac_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-09-09 09:43:58 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-09-12 08:44:51 -0300
commit5eee375564b95e184b15c90ec0680d57172e496e (patch)
treeb5ce2f7a3073763aeaca0f3df24f563fda5fb612 /usr/local/www/services_captiveportal_mac_edit.php
parent736c36c6745bb7823c061d06f58ae1169ef6649e (diff)
downloadpfsense-5eee375564b95e184b15c90ec0680d57172e496e.zip
pfsense-5eee375564b95e184b15c90ec0680d57172e496e.tar.gz
Make captiveportal_passthrumac_delete_entry() return rules instead of execute them as other similar functions do
Diffstat (limited to 'usr/local/www/services_captiveportal_mac_edit.php')
-rwxr-xr-xusr/local/www/services_captiveportal_mac_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/services_captiveportal_mac_edit.php b/usr/local/www/services_captiveportal_mac_edit.php
index b4c1ec8..095e36d 100755
--- a/usr/local/www/services_captiveportal_mac_edit.php
+++ b/usr/local/www/services_captiveportal_mac_edit.php
@@ -142,8 +142,8 @@ if ($_POST) {
write_config();
if (isset($config['captiveportal'][$cpzone]['enable'])) {
- captiveportal_passthrumac_delete_entry($mac);
- $rules = captiveportal_passthrumac_configure_entry($mac);
+ $rules = captiveportal_passthrumac_delete_entry($mac);
+ $rules .= captiveportal_passthrumac_configure_entry($mac);
$uniqid = uniqid("{$cpzone}_macedit");
file_put_contents("{$g['tmp_path']}/{$uniqid}_tmp", $rules);
mwexec("/sbin/ipfw -x {$cpzone} -q {$g['tmp_path']}/{$uniqid}_tmp");
OpenPOWER on IntegriCloud