mirror of
https://git.vectorsigma.ru/public/AdGuardHome.git
synced 2026-08-03 22:59:28 +00:00
Pull request 2413: 2945-fix-stats-in-client-table
Updates #2945. Squashed commit of the following: commit 305026dd1113636e06ef43b57c8382e989980d0a Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed May 21 14:37:58 2025 +0300 all: upd chlog commit bb8288c0b6d4f758afac1d39599fcac2da2371ae Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed May 21 14:31:04 2025 +0300 client: fix types in helper
This commit is contained in:
@@ -651,7 +651,7 @@ export const countClientsStatistics = (ids: any, autoClients: any) => {
|
||||
const cidrsCount = Object.entries(autoClients).reduce((acc: any, curr: any) => {
|
||||
const [id, count] = curr;
|
||||
if (!ipaddr.isValid(id)) {
|
||||
return false;
|
||||
return acc;
|
||||
}
|
||||
if (cidrs.some((cidr: any) => isIpInCidr(id, cidr))) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
|
||||
Reference in New Issue
Block a user