You've already forked caddy-opnsense-blocker
Cache IP intelligence and add allowed filter
This commit is contained in:
@@ -153,4 +153,11 @@ func TestStoreRecordsEventsAndState(t *testing.T) {
|
||||
if len(userAgents) != 1 || userAgents[0] != event.UserAgent {
|
||||
t.Fatalf("unexpected user agents: %#v", userAgents)
|
||||
}
|
||||
missingInvestigationIPs, err := db.ListIPsWithoutInvestigation(ctx, time.Time{}, 10)
|
||||
if err != nil {
|
||||
t.Fatalf("list ips without investigation: %v", err)
|
||||
}
|
||||
if len(missingInvestigationIPs) != 0 {
|
||||
t.Fatalf("expected no IPs without investigation, got %#v", missingInvestigationIPs)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user