From 5f17fb7ec573cc903ff36d8bc5cfa473a3e2b858 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 22 Apr 2007 00:52:01 +0000 Subject: [PATCH] Correctly setup nat interface mappings when AON is disabled and a gateway is present. Ticket #1289 --- etc/inc/filter.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index ef45abd567..61af60cb59 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -702,7 +702,7 @@ function filter_nat_rules_generate() { generate_optcfg_array($optints); foreach($optints as $oc) { $opt_interface = $oc['if']; - if($oc['gateway'] == "" or $oc['if'] <> "dhcp") + if($oc['gateway'] <> "" or $oc['if'] <> "dhcp") $natrules .= filter_nat_rules_generate_if($opt_interface, "{$optsa}/{$optcfg['subnet']}", null, "", null, null, null, isset($optcfg['nonat'])); }