Firewall/forward, typo in ForwardRule.php https://github.com/opnsense/core/issues/1326

This commit is contained in:
Ad Schellevis 2017-12-23 15:37:53 +01:00
parent 160820d2df
commit 054d69cd01

View File

@ -156,7 +156,7 @@ class ForwardRule extends Rule
// Only add nat rules when the selected interface has an address configured
if (!empty($this->interfaceMapping[$interf])) {
if (!empty($this->interfaceMapping[$interf]['ifconfig']['ipv4']) ||
!empty($this->interfaceMapping[$interf]['ifconfig']['ipv4']) ) {
!empty($this->interfaceMapping[$interf]['ifconfig']['ipv6']) ) {
$rule['rule_types'][] = "rdr_nat";
$rule['staticnatport'] = !empty($rule['staticnatport']);
}