mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Update achors links and live flows filters. (#7233)
This commit is contained in:
parent
ce6a62ef27
commit
b170e44920
11 changed files with 174 additions and 29 deletions
|
|
@ -181,6 +181,8 @@ function getFlowsFilter()
|
|||
local asn = _GET["asn"]
|
||||
local tcp_state = _GET["tcp_flow_state"]
|
||||
local talking_with = _GET["talking_with"]
|
||||
local client = _GET["client"]
|
||||
local server = _GET["server"]
|
||||
|
||||
if sortColumn == nil or sortColumn == "column_" or sortColumn == "" then
|
||||
sortColumn = getDefaultTableSort("flows")
|
||||
|
|
@ -369,6 +371,14 @@ function getFlowsFilter()
|
|||
pageinfo["tcpFlowStateFilter"] = tcp_state
|
||||
end
|
||||
|
||||
if not isEmptyString(client) then
|
||||
pageinfo["client"] = client
|
||||
end
|
||||
|
||||
if not isEmptyString(server) then
|
||||
pageinfo["server"] = server
|
||||
end
|
||||
|
||||
return pageinfo
|
||||
end
|
||||
|
||||
|
|
@ -2179,6 +2189,19 @@ function getFlowsTableTitle()
|
|||
active_msg = active_msg .. i18n("flows_page.host", {host=_GET["host"]})
|
||||
end
|
||||
|
||||
if(_GET["client"] ~= nil) then
|
||||
if(_GET["server"] ~= nil) then
|
||||
active_msg = active_msg .. i18n("flows_page.client_to_server", {client=_GET["client"], server=_GET["server"]})
|
||||
else
|
||||
active_msg = active_msg .. i18n("flows_page.client", {client=_GET["client"]})
|
||||
end
|
||||
else
|
||||
if(_GET["server"] ~= nil) then
|
||||
active_msg = active_msg .. i18n("flows_page.server", {server=_GET["server"]})
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
if(_GET["port"] ~= nil) then
|
||||
active_msg = active_msg .. i18n("flows_page.port", {port=_GET["port"]})
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue