mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
Firewall/forward, typo in ForwardRule.php https://github.com/opnsense/core/issues/1326
This commit is contained in:
parent
160820d2df
commit
054d69cd01
@ -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']);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user