clarify comment

This commit is contained in:
Scott Ullrich 2005-08-27 01:19:43 +00:00
parent 7dc7a8dcfe
commit aef27b8c6e

View File

@ -996,11 +996,12 @@ function filter_nat_rules_generate() {
if (isset($optcfg['enable']) && !$optcfg['bridge']) {
$optsa = gen_subnet($optcfg['ipaddr'], $optcfg['subnet']);
/* setup nat mappings for lan -> optional interface */
if($optcfg['gateway'] <> "") {
/* setup nat mappings for lan -> opt[$i]
* interface if a gateway is defined
*/
if($optcfg['gateway'] <> "")
$natrules .= filter_nat_rules_generate_if($optcfg['if'],
$lansa . "/" . $lancfg['subnet'], null, "", null, null, "");
}
$natrules .= filter_nat_rules_generate_if($wanif,
$optsa . "/" . $optcfg['subnet'], null, "", null, null, "");