#8024 fixed router ip
This commit is contained in:
parent
9beda8eada
commit
d237fab6a6
|
@ -910,9 +910,15 @@ function netflow_get_filter_arguments($filter, $safe_input=false)
|
|||
|
||||
// Normal filter.
|
||||
if ($filter['ip_dst'] != '') {
|
||||
if ($filter_args != '') {
|
||||
$filter_args .= ' AND (';
|
||||
} else {
|
||||
$filter_args .= ' (';
|
||||
}
|
||||
|
||||
$val_ipdst = explode(',', io_safe_output($filter['ip_dst']));
|
||||
for ($i = 0; $i < count($val_ipdst); $i++) {
|
||||
if (!empty($val_ipdst[$i])) {
|
||||
if ($i > 0) {
|
||||
$filter_args .= ' or ';
|
||||
}
|
||||
|
@ -923,6 +929,7 @@ function netflow_get_filter_arguments($filter, $safe_input=false)
|
|||
$filter_args .= 'dst net '.$val_ipdst[$i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$filter_args .= ')';
|
||||
}
|
||||
|
@ -1734,8 +1741,10 @@ function netflow_update_second_level_filter(&$filter, $aggregate, $sources)
|
|||
$filter[$extra_filter] .= ',';
|
||||
}
|
||||
|
||||
if (!empty($sources)) {
|
||||
$filter[$extra_filter] = implode(',', $sources);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue