mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 11:35:37 +01:00
feat: hasBlockedIp func - replace find with some to check blocked IP
This commit is contained in:
parent
9a66a2a461
commit
350618471d
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ export function hasBlockedIp(clientIp: string) {
|
||||||
|
|
||||||
const ips = ignoreIps.split(',').map(n => n.trim());
|
const ips = ignoreIps.split(',').map(n => n.trim());
|
||||||
|
|
||||||
return ips.find(ip => {
|
return ips.some(ip => {
|
||||||
if (ip === clientIp) {
|
if (ip === clientIp) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue