Commit 8d0cb3c5 authored by Ad Schellevis's avatar Ad Schellevis

(filter.inc) style / simplify things

parent 6c7f63b8
......@@ -1023,23 +1023,14 @@ function filter_generate_optcfg_array()
}
function filter_get_reflection_interfaces(&$FilterIflist, $natif = '')
function filter_get_reflection_interfaces(&$FilterIflist, $natif)
{
$nat_if_list = array();
foreach ($FilterIflist as $ifent => $ifname) {
if ($ifname['if'] == $natif) {
continue;
}
/* Do not add reflection redirects for interfaces with gateways */
if (interface_has_gateway($ifent)) {
continue;
}
if ($ifname['if'] != $natif && !interface_has_gateway($ifent)) {
$nat_if_list[] = $ifname['if'];
}
}
return $nat_if_list;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment