MCPcopy Create free account
hub / github.com/F12FLASH/CTF / getClientIdentifier

Function getClientIdentifier

7.GraphQL Apocalypse/server/routes.ts:22–24  ·  view source on GitHub ↗
(req: any)

Source from the content-addressed store, hash-verified

20const clientAttempts = new Map<string, { count: number; lastAttempt: number }>();
21
22function getClientIdentifier(req: any): string {
23 return req.ip || req.connection?.remoteAddress || 'unknown';
24}
25
26function calculateQueryDepth(query: string): number {
27 let depth = 0;

Callers 1

registerRoutesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected