mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Removed old API call
Tiny changes to XSS check code
This commit is contained in:
parent
11f8c934d0
commit
12aad4e7a7
3 changed files with 5 additions and 9 deletions
|
|
@ -29,12 +29,9 @@ function fill_ports_array(field_key, flows_stats, host)
|
|||
end
|
||||
|
||||
if (host == nil) then
|
||||
flows_stats = interface.queryFlowsInfo("SELECT PORTS FROM FLOWS")
|
||||
flows_stats,total = aggregateFlowsStats(interface.getFlowsInfo())
|
||||
else
|
||||
host_table = hostkey2hostinfo(host)
|
||||
host = host_table["host"]
|
||||
vlan = host_table["vlan"] or 0
|
||||
flows_stats = interface.queryFlowsInfo("SELECT PORTS FROM FLOWS WHERE host = "..host.." AND vlan = "..tostring(vlan))
|
||||
flows_stats,total = aggregateFlowsStats(interface.getFlowsInfo(host))
|
||||
end
|
||||
client_ports = fill_ports_array("cli", flows_stats, host)
|
||||
server_ports = fill_ports_array("srv", flows_stats, host)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue