Added ASN data to UI and cleaned formatters (#9452)

* Added check redis pref for asn mode enabled

* Added transit asn to flow historical page #9368
This commit is contained in:
GabrieleDeri 2025-07-29 14:57:52 +02:00 committed by GitHub
parent 9c6247ac8d
commit 719060d31f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 75 additions and 33 deletions

View file

@ -160,7 +160,7 @@ for _, value in ipairs(flows_stats.flows) do
local transit_asn_data = {
asn = transit_asn or 0,
name = ntop.getASName(transit_asn_ip)
name = ntop.getASNameFromASN(tonumber(transit_asn))
}
-- Formatting client column