Count traffic per client address and report the busiest ones with the port totals

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
VeillaxandClaude Sonnet 5.5 committed 2026-10-27 16:54:57 -06:00
1 parent b46e0813fe
commit ed9edbc9fd
7 files changed
+163 -17

No files matched your search

+1 -3
View File
@@ -258,9 +258,7 @@ func (l *listener) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
entry.BytesOut = rec.bytes
entry.Millis = time.Since(start).Milliseconds()
ms.conns.Add(1)
ms.bytesIn.Add(entry.BytesIn)
ms.bytesOut.Add(entry.BytesOut)
ms.record(r.RemoteAddr, 1, entry.BytesIn, entry.BytesOut)
b.logAccess(entry)
}()