MCPcopy Create free account
hub / github.com/vercel/vercel / getRequestIp

Method getRequestIp

packages/cli/src/util/dev/server.ts:1454–1457  ·  view source on GitHub ↗
(req: http.IncomingMessage)

Source from the content-addressed store, hash-verified

1452 }
1453
1454 getRequestIp(req: http.IncomingMessage): string {
1455 // TODO: respect the `x-forwarded-for` headers
1456 return req.connection.remoteAddress || '127.0.0.1';
1457 }
1458
1459 /**
1460 * Sets the response `headers` including the platform headers to `res`.

Callers 1

getProxyHeadersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected