firewall, source nat, typo in destination address, closes https://github.com/opnsense/core/issues/3321

This commit is contained in:
Ad Schellevis 2019-03-14 09:29:14 +01:00
parent 5fe65f26ca
commit 64c4d89b9d

View File

@ -286,7 +286,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if ($pconfig['destination'] == "any") {
$natent['destination']['any'] = true;
} elseif (is_alias($pconfig['destination']) || is_specialnet($pconfig['destination'])){
$natent['destination']['address'] = trim($pconfig['destination']) ;
$natent['destination']['network'] = trim($pconfig['destination']) ;
} else {
if (is_ipaddrv6($pconfig['destination'])) {
$natent['destination']['address'] = gen_subnetv6(trim($pconfig['destination']), $pconfig['destination_subnet']) . "/" . $pconfig['destination_subnet'];