mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
Revert "Filter, "no translation address with matching address family found" fix for https://github.com/opnsense/core/issues/2841"
This reverts commit 971df3c4bfae40a982f670ffbe932b7013faf9db.
This commit is contained in:
parent
971df3c4bf
commit
45a4d2b4b8
@ -254,17 +254,6 @@ abstract class Rule
|
||||
$rule[$target] = "({$interfaces["{$matches[1]}"]['if']})";
|
||||
}
|
||||
} elseif (!empty($interfaces[$network_name]['if'])) {
|
||||
if ($rule['ipprotocol'] == "inet") {
|
||||
$network_found = !empty($interfaces[$network_name]['ifconfig']['ipv4']);
|
||||
} else {
|
||||
$network_found = !empty($interfaces[$network_name]['ifconfig']['ipv6']);
|
||||
}
|
||||
if (!$network_found) {
|
||||
$rule['disabled'] = true;
|
||||
$this->log(
|
||||
"network address type {$rule['ipprotocol']} not found on interface {$network_name}"
|
||||
);
|
||||
}
|
||||
$rule[$target] = "({$interfaces[$network_name]['if']}:network)";
|
||||
} elseif (Util::isIpAddress($rule[$tag]['network']) || Util::isSubnet($rule[$tag]['network'])) {
|
||||
$rule[$target] = $rule[$tag]['network'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user