mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Fix many missing requires.
This commit is contained in:
parent
e243f7c826
commit
83634d06e1
6 changed files with 9 additions and 4 deletions
|
|
@ -162,11 +162,11 @@ function hostkey2hostinfo(key)
|
|||
local host = {}
|
||||
local info = split(key,"@")
|
||||
|
||||
if(info[1] ~= nil) then
|
||||
if(info and info[1] ~= nil) then
|
||||
host["host"] = info[1]
|
||||
end
|
||||
|
||||
if(info[2] ~= nil) then
|
||||
if(info and info[2] ~= nil) then
|
||||
host["vlan"] = tonumber(info[2])
|
||||
else
|
||||
host["vlan"] = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue