code style

This commit is contained in:
Ad Schellevis 2016-04-11 18:13:45 +02:00
parent 1106416d7a
commit bae8ece59b

View File

@ -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 {