From bae8ece59be7ef3aec5ea8dc31195b70ba1a34e6 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 11 Apr 2016 18:13:45 +0200 Subject: [PATCH] code style --- src/www/firewall_nat_edit.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/www/firewall_nat_edit.php b/src/www/firewall_nat_edit.php index 6a7679506..abadaf034 100644 --- a/src/www/firewall_nat_edit.php +++ b/src/www/firewall_nat_edit.php @@ -145,7 +145,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { address_to_pconfig($a_nat[$configId]['destination'], $pconfig['dst'], $pconfig['dstmask'], $pconfig['dstnot'], $pconfig['dstbeginport'], $pconfig['dstendport']); - } else if (isset($_GET['template']) && $_GET['template'] == 'transparant_proxy') { + } elseif (isset($_GET['template']) && $_GET['template'] == 'transparant_proxy') { // new rule for transparant proxy reflection, to use as sample $pconfig['interface'] = "lan"; $pconfig['src'] = "lan"; @@ -158,8 +158,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { } else { $pconfig['local-port'] = 3129; } - } - else { + } else { $pconfig['dstbeginport'] = 80; $pconfig['dstendport'] = 80; // try to read the proxy configuration to determine the current port @@ -172,7 +171,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { } } $pconfig['target'] = '127.0.0.1'; - + $pconfig['natreflection'] = 'enable'; $pconfig['descr'] = gettext("redirect traffic to proxy"); } else {