diff --git a/packages/hoppscotch-backend/src/guards/gql-throttler.guard.ts b/packages/hoppscotch-backend/src/guards/gql-throttler.guard.ts index 14316586..b51db4c9 100644 --- a/packages/hoppscotch-backend/src/guards/gql-throttler.guard.ts +++ b/packages/hoppscotch-backend/src/guards/gql-throttler.guard.ts @@ -9,4 +9,7 @@ export class GqlThrottlerGuard extends ThrottlerGuard { const ctx = gqlCtx.getContext(); return { req: ctx.req, res: ctx.res }; } + protected async getTracker(req: Record): Promise { + return req.ips.length ? req.ips[0] : req.ip; // individualize IP extraction to meet your own needs + } }