fix: forge browsing, verified crawlers, ban feedback loop, coverage metrics and slow-attacker policy (1.6.0)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-15 20:26:56 -03:00
1 parent 393a31cebe
commit 54b9ae65cd
23 files changed
+802 -100

No files matched your search

+5 -3
View File
@@ -547,14 +547,16 @@ func (s *Store) metrics(rg Range) MetricsOut {
if core.LevelOf(r.Score, strong, r.adminAt(now)) == core.LevelHostile {
hostile++
banned := len(r.Jails) > 0
listed := false
// protected: on the blocklist this instance publishes (public address)
// or already banned by a jail; a private address can be neither.
listed := r.ListedSince > 0
if a, err := netip.ParseAddr(strings.SplitN(ip, "/", 2)[0]); err == nil {
listed = core.IsGlobal(a)
listed = listed && core.IsGlobal(a)
}
if banned {
hostileBanned++
}
if listed {
if listed || banned {
hostileListed++
}
if !banned && !listed {