mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
Firewall/ outbound nat, alias target defunct. for https://github.com/opnsense/core/issues/2194
This commit is contained in:
parent
20ad5b73d7
commit
b5149928aa
@ -92,6 +92,8 @@ class SNatRule extends Rule
|
||||
}
|
||||
} elseif ($rule['target'] == "other-subnet") {
|
||||
$rule['target'] = $rule['targetip'] . '/' . $rule['targetip_subnet'];
|
||||
} elseif (!empty($rule['target']) && Util::isAlias($rule['target'])) {
|
||||
$rule['target'] = "$".$rule['target'];
|
||||
}
|
||||
foreach (array("sourceport", "dstport", "natport") as $fieldname) {
|
||||
if (!empty($rule[$fieldname]) && Util::isAlias($rule[$fieldname])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user