summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_out.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-04-14 12:32:55 +0000
committerErmal <eri@pfsense.org>2014-04-14 12:32:55 +0000
commit2154560df2faea920f8fc01f2efea0b5dd07979f (patch)
tree1972733c9ab1111660faa0cbd8c1f4ae37296d8c /usr/local/www/firewall_nat_out.php
parentb0de43998313096f43aa668400a250371289d9f2 (diff)
downloadpfsense-2154560df2faea920f8fc01f2efea0b5dd07979f.zip
pfsense-2154560df2faea920f8fc01f2efea0b5dd07979f.tar.gz
Unset these globals after use
Diffstat (limited to 'usr/local/www/firewall_nat_out.php')
-rw-r--r--usr/local/www/firewall_nat_out.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php
index 322a289..1d993b8 100644
--- a/usr/local/www/firewall_nat_out.php
+++ b/usr/local/www/firewall_nat_out.php
@@ -47,6 +47,7 @@ require_once("filter.inc");
require_once("shaper.inc");
global $FilterIflist;
+global $GatewaysList;
if (!is_array($config['nat']['outbound']))
$config['nat']['outbound'] = array();
@@ -88,6 +89,8 @@ if (isset($_POST['save']) && $_POST['save'] == "Save") {
*/
if(empty($FilterIflist))
filter_generate_optcfg_array();
+ if(empty($GatewaysList))
+ filter_generate_gateways();
$tonathosts = filter_nat_rules_automatic_tonathosts(true);
$automatic_rules = filter_nat_rules_outbound_automatic("");
@@ -117,6 +120,7 @@ if (isset($_POST['save']) && $_POST['save'] == "Save") {
}
}
$savemsg = gettext("Default rules for each interface have been created.");
+ unset($FilterIflist, $GatewaysList);
}
$config['nat']['outbound']['mode'] = $_POST['mode'];
@@ -526,6 +530,7 @@ if (is_subsystem_dirty('natconf'))
if(empty($GatewaysList))
filter_generate_gateways();
$automatic_rules = filter_nat_rules_outbound_automatic(implode(" ", filter_nat_rules_automatic_tonathosts()));
+ unset($FilterIflist, $GatewaysList);
?>
<tr><td colspan="5"><b>&nbsp;<?=gettext("Automatic rules:"); ?></b></td></tr>
<tr><td>&nbsp;</td></tr>
OpenPOWER on IntegriCloud