mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-21 01:54:34 +00:00
Fix rest/v1/get/host/active.lua
This commit is contained in:
parent
6368073bc4
commit
00a9879019
2 changed files with 3 additions and 3 deletions
|
|
@ -1563,7 +1563,7 @@ end
|
|||
function hostkey2hostinfo(key)
|
||||
local host = {}
|
||||
local info = split(key,"@")
|
||||
if(info[1] ~= nil) then host["host"] = info[1] end
|
||||
if(info[1] ~= nil) then host["host"] = info[1] end
|
||||
if(info[2] ~= nil) then
|
||||
host["vlan"] = tonumber(info[2])
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue