mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
host_details.lua: fix format of MAC-based host classification
This commit fixes format of host classification based on MAC in case classification is not successful.
This commit is contained in:
parent
0d2eeeb4d8
commit
9a26d6d6a8
2 changed files with 2 additions and 2 deletions
|
|
@ -1590,7 +1590,7 @@ function get_mac_classification(mac_address)
|
|||
t = split(mac_line, "\t")
|
||||
if (string.match(mac_address, t[1]..".*") ~= nil) then
|
||||
file_mac.close()
|
||||
return split(t[2], " ")[1]
|
||||
return "("..split(t[2], " ")[1]..")"
|
||||
end
|
||||
end
|
||||
mac_line = file_mac:read("*l")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue