Skip to content

basalt / hono/src / defaultClientIp

Variable: defaultClientIp ​

> const defaultClientIp: ClientIpResolver

Defined in: hono/src/index.ts:123

Default client-address resolution: the transport's socket address, never a client-controlled header. Supports @hono/node-server (env.incoming) and Bun (env.requestIP). Other runtimes (edge, Deno) need getClientIp.

Released under the MIT License.