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:
Ad Schellevis 2019-04-14 16:36:50 +02:00
parent 971df3c4bf
commit 45a4d2b4b8

View File

@ -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'];