Commit ddcc2c85 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) regression firewall_nat_out_edit.php

parent 16ed1470
......@@ -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']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment