From 054d69cd01bef33a378fe3586b9cb06318751a5d Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sat, 23 Dec 2017 15:37:53 +0100 Subject: [PATCH] Firewall/forward, typo in ForwardRule.php https://github.com/opnsense/core/issues/1326 --- src/opnsense/mvc/app/library/OPNsense/Firewall/ForwardRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/mvc/app/library/OPNsense/Firewall/ForwardRule.php b/src/opnsense/mvc/app/library/OPNsense/Firewall/ForwardRule.php index 80dc3de36..a2c2a7f5c 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Firewall/ForwardRule.php +++ b/src/opnsense/mvc/app/library/OPNsense/Firewall/ForwardRule.php @@ -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']); }