mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added check for entries with no VLAN
This commit is contained in:
parent
374b97c516
commit
827f3ad3a9
1 changed files with 1 additions and 1 deletions
|
|
@ -3928,7 +3928,7 @@ function buildHostHREF(ip_address, vlan_id, page)
|
|||
|
||||
if((name == nil) or (name == "")) then name = ip_address end
|
||||
res = '<A HREF="'..ntop.getHttpPrefix()..'/lua/host_details.lua?host='..ip_address
|
||||
if(vlan_id ~= 0) then res = res .. "@"..vlan_id end
|
||||
if(vlan_id and (vlan_id ~= 0)) then res = res .. "@"..vlan_id end
|
||||
res = res ..'&page='..page..'">'..name..'</A>'
|
||||
|
||||
return(res)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue