summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/firewall_nat_out.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php
index 39b68aa..39cc4c3 100755
--- a/usr/local/www/firewall_nat_out.php
+++ b/usr/local/www/firewall_nat_out.php
@@ -96,7 +96,8 @@ if (isset($_POST['save'])) {
$ifdescrs[] = "opt" . $j;
foreach($ifdescrs as $if) {
$natent = array();
- $osn = convert_ip_to_network_format($config['interface'][$if]['ipaddr'], $config['interface'][$if]['subnet']);
+ $osn = convert_ip_to_network_format($config['interfaces'][$if]['ipaddr'],
+ $config['interfaces'][$if]['subnet']);
$natent['source']['network'] = $osn;
$natent['sourceport'] = "";
$natent['descr'] = "Auto created rule for {$if}";
OpenPOWER on IntegriCloud