From 330591f5f58913cf1f93107c00fe50706e529099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20LU=C3=87I?= Date: Mon, 12 Jan 2015 09:30:46 +0100 Subject: properly apply the passthrough entries when apply is hitr. --- usr/local/www/services_captiveportal_mac.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr/local/www') diff --git a/usr/local/www/services_captiveportal_mac.php b/usr/local/www/services_captiveportal_mac.php index c0e73e5..c23a30f 100644 --- a/usr/local/www/services_captiveportal_mac.php +++ b/usr/local/www/services_captiveportal_mac.php @@ -72,9 +72,12 @@ if ($_POST) { $retval = 0; $rules = captiveportal_passthrumac_configure(); + @file_put_contents("{$['tmp_path']}/passthrumac_gui", $rules); + mwexec("/sbin/ipfw -x {$cpzoneid} "{$['tmp_path']}/passthrumac_gui"); $savemsg = get_std_save_message($retval); if ($retval == 0) clear_subsystem_dirty('passthrumac'); + @unlink("{$['tmp_path']}/passthrumac_gui"); } if ($_POST['postafterlogin']) { -- cgit v1.1