MCPcopy Create free account
hub / github.com/agent-tower/core / getRemoteAddress

Function getRemoteAddress

packages/server/src/middleware/agent-cli-local-only.ts:47–49  ·  view source on GitHub ↗
(request: FastifyRequest)

Source from the content-addressed store, hash-verified

45}
46
47function getRemoteAddress(request: FastifyRequest): string | undefined {
48 return request.ip || request.socket.remoteAddress;
49}
50
51function sameOrigin(origin: URL, hostHeader: string): boolean {
52 return origin.host.toLowerCase() === hostHeader.toLowerCase();

Callers 1

agentCliLocalOnlyHookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected