feat: hasBlockedIp func - replace find with some to check blocked IP
This commit is contained in:
1 parent
9a66a2a461
commit
350618471d
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user