diff options
author | Renato Botelho <renato@netgate.com> | 2016-10-24 19:19:19 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-10-24 19:22:00 -0200 |
commit | 517b893eec63ce7695bc91b3a0e82882136e8ef5 (patch) | |
tree | 603b3c72b04277a76b8c531400a0f339ceebf9ed /src/usr/local/www/services_captiveportal_mac_edit.php | |
parent | 6344be46d4946e594085f7a08249f70a5b109340 (diff) | |
download | pfsense-517b893eec63ce7695bc91b3a0e82882136e8ef5.zip pfsense-517b893eec63ce7695bc91b3a0e82882136e8ef5.tar.gz |
Rework captive portal to run with stock IPFW (round 1)
- Remove use of IPFW context
- Create a rule that will skip to proper rule for each cp zone
- Use new PHP module functions wherever is possible
Diffstat (limited to 'src/usr/local/www/services_captiveportal_mac_edit.php')
-rw-r--r-- | src/usr/local/www/services_captiveportal_mac_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/services_captiveportal_mac_edit.php b/src/usr/local/www/services_captiveportal_mac_edit.php index 270daf3..91d01e0 100644 --- a/src/usr/local/www/services_captiveportal_mac_edit.php +++ b/src/usr/local/www/services_captiveportal_mac_edit.php @@ -172,7 +172,7 @@ if ($_POST) { $rules .= captiveportal_passthrumac_configure_entry($mac); $uniqid = uniqid("{$cpzone}_macedit"); file_put_contents("{$g['tmp_path']}/{$uniqid}_tmp", $rules); - mwexec("/sbin/ipfw -x {$cpzoneid} -q {$g['tmp_path']}/{$uniqid}_tmp"); + mwexec("/sbin/ipfw -q {$g['tmp_path']}/{$uniqid}_tmp"); @unlink("{$g['tmp_path']}/{$uniqid}_tmp"); unset($cpzoneid); } |