Add request ip to request object (#4265)
* add the client ip to the request config object * add the config ip to the trigger request object * add the config ip to the functions request object * add tests * remove log * remove log
This commit is contained in:
committed by
Florent Vilmart
parent
9376b4d04a
commit
70ad9e9ffd
@@ -144,6 +144,7 @@ export function getRequestObject(triggerType, auth, parseObject, originalParseOb
|
||||
master: false,
|
||||
log: config.loggerController,
|
||||
headers: config.headers,
|
||||
ip: config.ip,
|
||||
};
|
||||
|
||||
if (originalParseObject) {
|
||||
@@ -176,6 +177,7 @@ export function getRequestQueryObject(triggerType, auth, query, count, config, i
|
||||
log: config.loggerController,
|
||||
isGet,
|
||||
headers: config.headers,
|
||||
ip: config.ip,
|
||||
};
|
||||
|
||||
if (!auth) {
|
||||
|
||||
Reference in New Issue
Block a user