Show post in first step in netflow explorer

Former-commit-id: 21263d2d4ce0e9f5249156345c837f90b5227381
This commit is contained in:
fermin831 2019-03-07 13:38:03 +01:00
parent 962284f8c5
commit 1abe88c375
1 changed files with 12 additions and 4 deletions

View File

@ -1907,11 +1907,19 @@ function netflow_get_top_summary(
break;
case 'tcp':
// Todo.
break;
case 'udp':
// Todo.
$netflow_filter['proto'] = $top_action;
$sort = 'port';
if (empty(!$filter)) {
$netflow_filter['advanced_filter'] = sprintf(
'((dst port %s) or (src port %s)) and (proto %s)',
$filter,
$filter,
$top_action
);
// Display ips when filter is set in port.
$sort = 'ip';
}
break;
default: