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

This commit is contained in:
Kissablecho committed 2026-02-17 22:01:49 +08:00
1 parent 9a66a2a461
commit 350618471d
1 file changed
+1 -1
+1 -1
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;
}