add request.ip

This commit is contained in:
Jiaren Liu
2017-11-16 15:17:45 +08:00
parent a9d7f1bf8b
commit 3fc0f813fa

View File

@@ -136,6 +136,11 @@ declare interface ContextDelegatedRequest {
*/
secure: boolean;
/**
* Request remote address. Supports X-Forwarded-For when app.proxy is true.
*/
ip: string;
/**
* When `app.proxy` is `true`, parse
* the "X-Forwarded-For" ip address list.