Correctly setup nat interface mappings when AON is disabled and a gateway is present.

This commit is contained in:
Scott Ullrich 2007-04-22 00:52:01 +00:00
parent ea951e6f27
commit 5f17fb7ec5

View File

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