mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Removed un-necessary buttons (IPv4 button with IPv6 traffic and vice-versa)
This commit is contained in:
parent
20becf6c29
commit
29dd494321
2 changed files with 46 additions and 14 deletions
|
|
@ -27,7 +27,16 @@ end
|
|||
local timediff = epoch_end - epoch_begin + 1
|
||||
|
||||
local totals = { ["count"] = {}, ["timespan"] = timediff, ["status"] = "ok" }
|
||||
local versions = { [4] = 'IPv4', [6] = 'IPv6' }
|
||||
local versions
|
||||
local isv6 = isIPv6Address(_GET["host"])
|
||||
|
||||
if(isv6) then
|
||||
versions = { [6] = 'IPv6' }
|
||||
totals["count"]['IPv4'] = { ["tot_flows"] = 0, ["tot_bytes"] = 0, ["tot_packets"] = 0 }
|
||||
else
|
||||
versions = { [4] = 'IPv4' }
|
||||
totals["count"]['IPv6'] = { ["tot_flows"] = 0, ["tot_bytes"] = 0, ["tot_packets"] = 0 }
|
||||
end
|
||||
|
||||
headerShown = false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue