mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Handles unicode chars in host (custom) names and flow labels
Fixes #1290
This commit is contained in:
parent
1b97ad41ee
commit
e4accce602
7 changed files with 125 additions and 88 deletions
|
|
@ -106,12 +106,12 @@ else
|
|||
-- nest = nest + 1
|
||||
nest = displayProc(nest, flow.client_process,
|
||||
flow["cli.ip"],
|
||||
flowinfo2hostname(flow, "cli", flow["vlan"]),
|
||||
flowinfo2hostname(flow, "cli"),
|
||||
true, true, true, true, last, false)
|
||||
|
||||
displayProc(nest, flow.server_process,
|
||||
flow["srv.ip"],
|
||||
flowinfo2hostname(flow, "srv", flow["vlan"]),
|
||||
flowinfo2hostname(flow, "srv"),
|
||||
(flow["cli.ip"] ~= flow["srv.ip"]),
|
||||
((flow.client_process.father_pid ~= flow.server_process.father_pid) or (flow["cli.ip"] ~= flow["srv.ip"])),
|
||||
false,
|
||||
|
|
@ -121,11 +121,11 @@ else
|
|||
end
|
||||
elseif(flow.client_process ~= nil) then
|
||||
nest = displayProc(nest, flow.client_process,
|
||||
flow["cli.ip"], flowinfo2hostname(flow, "cli", flow["vlan"]),
|
||||
flow["cli.ip"], flowinfo2hostname(flow, "cli"),
|
||||
true, true, true, true, true, false)
|
||||
elseif(flow.server_process ~= nil) then
|
||||
nest = displayProc(nest, flow.server_process,
|
||||
flow["srv.ip"], flowinfo2hostname(flow, "srv", flow["vlan"]),
|
||||
flow["srv.ip"], flowinfo2hostname(flow, "srv"),
|
||||
true, true, true, true, true, false)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue