mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
clarify comment
This commit is contained in:
parent
7dc7a8dcfe
commit
aef27b8c6e
@ -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, "");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user