mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added client and server country as part of the active flows REST (#8957)
This commit is contained in:
parent
508d4d8a6d
commit
b383fb4463
1 changed files with 2 additions and 2 deletions
|
|
@ -90,7 +90,7 @@ for _key, value in ipairs(flows_stats) do
|
|||
client["name"] = stripVlan(cli_name)
|
||||
client["ip"] = value["cli.ip"]
|
||||
client["port"] = value["cli.port"]
|
||||
|
||||
client["country"] = value["cli.country"]
|
||||
local info = interface.getHostInfo(value["cli.ip"], value["cli.vlan"])
|
||||
if info then
|
||||
client["is_broadcast_domain"] = info.broadcast_domain_host
|
||||
|
|
@ -106,7 +106,7 @@ for _key, value in ipairs(flows_stats) do
|
|||
server["name"] = stripVlan(srv_name)
|
||||
server["ip"] = value["srv.ip"]
|
||||
server["port"] = value["srv.port"]
|
||||
|
||||
server["country"] = value["srv.country"]
|
||||
info = interface.getHostInfo(value["srv.ip"], value["srv.vlan"])
|
||||
local info = interface.getHostInfo(value["cli.ip"], value["cli.vlan"])
|
||||
if info then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue