Fixed ASN 0 in as_stats (#9361)

This commit is contained in:
Manuel Ceroni 2025-07-08 10:34:01 +02:00 committed by GitHub
parent 7ac203d1c3
commit f9ebbcc842
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -59,6 +59,8 @@ if as_info ~= nil then
record["throughput"] = value["throughput_bps"]
record["asname"] = value["asname"]
if value["asn"] == 0 then record["asname"] = "Private hosts" end
record["breakdown"] = {
bytes_sent = bytes_sent,
bytes_rcvd = bytes_rcvd