(legacy) regression firewall_nat_out_edit.php

This commit is contained in:
Ad Schellevis 2015-08-31 11:03:41 +00:00
parent 16ed1470d2
commit ddcc2c85c4

View File

@ -249,7 +249,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// handle fields containing portnumbers
if (in_array($pconfig['protocol'], explode(" ", "any tcp udp tcp/udp"))) {
if (isset($pconfig['staticnatport']) && !empty($pconfig['nonat'])) {
if (isset($pconfig['staticnatport']) && empty($pconfig['nonat'])) {
$natent['staticnatport'] = true;
}
$natent['sourceport'] = trim($pconfig['sourceport']);