Firewall/ outbound nat, alias target defunct. for https://github.com/opnsense/core/issues/2194

This commit is contained in:
Ad Schellevis 2018-02-13 09:38:15 +01:00
parent 20ad5b73d7
commit b5149928aa

View File

@ -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])) {