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

This commit is contained in:
Kissablecho 2026-02-17 22:01:49 +08:00
parent 9a66a2a461
commit 350618471d

View file

@ -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;
}