diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-09-21 15:16:38 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-09-21 15:17:00 -0300 |
commit | ac8e8506b90c64b99c80bdff50892b703431b54a (patch) | |
tree | 6eb6450c0134a6bd1099a2c4190703ad589c36af /usr | |
parent | a40e7761ef32f4ae39c6c414f3f7b71aa7d13dce (diff) | |
download | pfsense-ac8e8506b90c64b99c80bdff50892b703431b54a.zip pfsense-ac8e8506b90c64b99c80bdff50892b703431b54a.tar.gz |
Fix #3218, reaload filter rules when activate or deactivate dhcpdv6
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/services_dhcpv6.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcpv6.php b/usr/local/www/services_dhcpv6.php index 09a4696..e367ed6 100644 --- a/usr/local/www/services_dhcpv6.php +++ b/usr/local/www/services_dhcpv6.php @@ -45,6 +45,7 @@ ##|-PRIV require("guiconfig.inc"); +require_once("filter.inc"); if(!$g['services_dhcp_server_enable']) { Header("Location: /"); @@ -148,6 +149,10 @@ if ($_POST) { unset($input_errors); + $old_dhcpdv6_enable = ($pconfig['enable'] == true); + $new_dhcpdv6_enable = ($_POST['enable'] ? true : false); + $dhcpdv6_enable_changed = ($old_dhcpdv6_enable != $new_dhcpdv6_enable); + $pconfig = $_POST; $numberoptions = array(); @@ -334,7 +339,9 @@ if ($_POST) { if ($retvaldhcp == 0) clear_subsystem_dirty('staticmaps'); } - if($retvaldhcp == 1 || $retvaldns == 1) + if ($dhcpdv6_enable_changed) + $retvalfc = filter_configure(); + if($retvaldhcp == 1 || $retvaldns == 1 || $retvalfc == 1) $retval = 1; $savemsg = get_std_save_message($retval); } |