Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

feat: hasBlockedIp func - replace find with some to check blocked IP

Kissablecho350618471d23
diff --git a/src/lib/detect.ts b/src/lib/detect.ts
index 6bba1596f..dccfe184d 100644
--- a/src/lib/detect.ts
+++ b/src/lib/detect.ts
@@ -146,7 +146,7 @@ export function hasBlockedIp(clientIp: string) {
const ips = ignoreIps.split(',').map(n => n.trim());
- return ips.find(ip => {
+ return ips.some(ip => {
if (ip === clientIp) {
return true;
}