mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
firewall, source nat, typo in destination address, closes https://github.com/opnsense/core/issues/3321
This commit is contained in:
parent
5fe65f26ca
commit
64c4d89b9d
@ -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'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user