mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Added check
This commit is contained in:
parent
55ec9981fd
commit
5b77a31eb4
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ function formatASN(v, peer_as, ip, is_client_as)
|
|||
|
||||
asn = "<A HREF=\"" .. ntop.getHttpPrefix() .. "/lua/hosts_stats.lua?asn=" .. v .. "\">" .. label .. "</A>"
|
||||
|
||||
if((peer_as ~= 0) and (v ~= peer_as)) then
|
||||
if((peer_as ~= nil) and (peer_as ~= 0) and (v ~= peer_as)) then
|
||||
local peer_asn = "<A HREF=\"" .. ntop.getHttpPrefix() .. "/lua/hosts_stats.lua?asn=" .. peer_as .. "\">" .. peer_as .. "</A>"
|
||||
|
||||
if(is_client_as) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue