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
| Parameter | Type | Default value |
|---|---|---|
app | RackApp | { call: RackApp; } | undefined |
ipSpoofingCheck | boolean | true |
customProxies? | CustomProxies | null | undefined |
Returns
RemoteIp
Properties
checkIp
readonlycheckIp:boolean
Defined in: packages/actionpack/lib/action-dispatch/middleware/remote-ip.ts:164
proxies
readonlyproxies: readonlyProxy[]
Defined in: packages/actionpack/lib/action-dispatch/middleware/remote-ip.ts:165
IpSpoofAttackError
readonlystaticIpSpoofAttackError: typeofIpSpoofAttackError
Defined in: packages/actionpack/lib/action-dispatch/middleware/remote-ip.ts:161
TRUSTED_PROXIES
readonlystaticTRUSTED_PROXIES: readonlystring[]
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
| Parameter | Type |
|---|---|
env | RackEnv |
Returns
Promise<RackResponse>