mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 12:05:41 +01:00
console log headers
This commit is contained in:
parent
29ea1ec253
commit
89e2443266
1 changed files with 2 additions and 0 deletions
|
|
@ -49,6 +49,8 @@ export async function getSession(req) {
|
||||||
// const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
|
// const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
|
||||||
const { userAgent, browser, os, ip, country, device } = await getClientInfo(req, payload);
|
const { userAgent, browser, os, ip, country, device } = await getClientInfo(req, payload);
|
||||||
|
|
||||||
|
console.log('headers:', JSON.stringify(req.headers));
|
||||||
|
|
||||||
console.log('ip:', ip);
|
console.log('ip:', ip);
|
||||||
|
|
||||||
let session_uuid = uuid(websiteId, hostname, ip, userAgent);
|
let session_uuid = uuid(websiteId, hostname, ip, userAgent);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue