Revision f91d05dd
Added by Jim Pingle about 9 years ago
src/etc/inc/filter.inc | ||
---|---|---|
1907 | 1907 |
} |
1908 | 1908 |
|
1909 | 1909 |
$natif = $FilterIflist[$natif]['if']; |
1910 |
$nat_if_list = array(); |
|
1910 | 1911 |
|
1911 | 1912 |
if (isset($rule['nobinat'])) { |
1912 | 1913 |
$natrules .= "no binat on {$natif} from {$srcaddr} to {$dstaddr}\n"; |
... | ... | |
1918 | 1919 |
if ((isset($config['system']['enablebinatreflection']) || $rule['natreflection'] == "enable") && |
1919 | 1920 |
($rule['natreflection'] != "disable")) { |
1920 | 1921 |
$nat_if_list = filter_get_reflection_interfaces($natif); |
1921 |
} else { |
|
1922 |
$nat_if_list = array(); |
|
1923 | 1922 |
} |
1924 | 1923 |
|
1925 | 1924 |
$natrules .= "binat on {$natif} from {$srcaddr} to {$dstaddr} -> {$target}{$sn1}\n"; |
Also available in: Unified diff
Ensure $nat_if_list is always an array before it is used as one. Fixes #6307