Skip to content

Documentation


Documentation / @blazetrails/actionpack / RemoteIp

Class: RemoteIp ​

Defined in: packages/actionpack/lib/action-dispatch/middleware/remote-ip.ts:160

Constructors ​

Constructor ​

new RemoteIp(app, ipSpoofingCheck?, customProxies?): RemoteIp

Defined in: packages/actionpack/lib/action-dispatch/middleware/remote-ip.ts:168

Parameters ​

ParameterTypeDefault value
appRackApp | { call: RackApp; }undefined
ipSpoofingCheckbooleantrue
customProxies?CustomProxies | nullundefined

Returns ​

RemoteIp

Properties ​

checkIp ​

readonly checkIp: boolean

Defined in: packages/actionpack/lib/action-dispatch/middleware/remote-ip.ts:164


proxies ​

readonly proxies: readonly Proxy[]

Defined in: packages/actionpack/lib/action-dispatch/middleware/remote-ip.ts:165


IpSpoofAttackError ​

readonly static IpSpoofAttackError: typeof IpSpoofAttackError

Defined in: packages/actionpack/lib/action-dispatch/middleware/remote-ip.ts:161


TRUSTED_PROXIES ​

readonly static TRUSTED_PROXIES: readonly string[]

Defined in: packages/actionpack/lib/action-dispatch/middleware/remote-ip.ts:162

Methods ​

call() ​

call(env): Promise<RackResponse>

Defined in: packages/actionpack/lib/action-dispatch/middleware/remote-ip.ts:207

Parameters ​

ParameterType
envRackEnv

Returns ​

Promise<RackResponse>