diff --git a/src/www/firewall_nat_out_edit.php b/src/www/firewall_nat_out_edit.php index 44dcfc076..cafed4b19 100644 --- a/src/www/firewall_nat_out_edit.php +++ b/src/www/firewall_nat_out_edit.php @@ -178,7 +178,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { if ($pconfig['source'] == "any" && !empty($pconfig['source_not'])) { $input_errors[] = gettext("Negating source address of \"any\" is invalid."); } - if (!is_specialnet($pconfig['destination']) && is_ipaddroralias($pconfig['destination'])) { + if (!is_specialnet($pconfig['destination']) && !is_ipaddroralias($pconfig['destination'])) { $input_errors[] = gettext("A valid destination must be specified."); } if (!empty($pconfig['destination_subnet']) && !is_numericint($pconfig['destination_subnet'])) {