mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Fixed tests.
This commit is contained in:
parent
6ab7746b7d
commit
7e2d257293
2 changed files with 5 additions and 5 deletions
|
|
@ -28,7 +28,7 @@ export function getIpAddress(headers: Headers) {
|
|||
const ip = headers.get(header);
|
||||
|
||||
if (header === 'x-forwarded-for') {
|
||||
return ip?.split[',']?.[0]?.trim();
|
||||
return ip?.split(',')?.[0]?.trim();
|
||||
}
|
||||
|
||||
if (header === 'forwarded') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue