mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
parent
7d727b3c16
commit
330d66123d
7 changed files with 70 additions and 17 deletions
|
|
@ -104,6 +104,7 @@ for _, data in pairs(aggregated_info or {}) do
|
|||
local server = nil
|
||||
local info = nil
|
||||
local application = nil
|
||||
local srv_port = nil
|
||||
|
||||
if (vlan) and
|
||||
(tonumber(vlan) ~= tonumber(data.vlan_id) or tonumber(vlan) ~= tonumber(data.cli_vlan_id) or tonumber(vlan) ~=
|
||||
|
|
@ -143,6 +144,13 @@ for _, data in pairs(aggregated_info or {}) do
|
|||
}
|
||||
end
|
||||
|
||||
if (response ~= {} and response.add_srv_port) then
|
||||
srv_port = {
|
||||
label = data.srv_port,
|
||||
id = data.srv_port
|
||||
}
|
||||
end
|
||||
|
||||
-- Format the client and server info
|
||||
if (add_client or (response ~= {} and response.add_client)) then
|
||||
local host = interface.getHostInfo(data.client_ip, data.cli_vlan_id or data.vlan_id)
|
||||
|
|
@ -206,6 +214,7 @@ for _, data in pairs(aggregated_info or {}) do
|
|||
client = client,
|
||||
server = server,
|
||||
info = info,
|
||||
srv_port = srv_port,
|
||||
application = application,
|
||||
vlan_id = {
|
||||
id = nil,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue