mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
parent
099c8bf1b4
commit
67981db524
1 changed files with 0 additions and 6 deletions
|
|
@ -17,12 +17,6 @@ test('getIpAddress: Standard header', () => {
|
|||
expect(getIpAddress(new Headers({ 'x-forwarded-for': IP }))).toEqual(IP);
|
||||
});
|
||||
|
||||
test('getIpAddress: CloudFlare header is lower priority than standard header', () => {
|
||||
expect(getIpAddress(new Headers({ 'cf-connecting-ip': BAD_IP, 'x-forwarded-for': IP }))).toEqual(
|
||||
IP,
|
||||
);
|
||||
});
|
||||
|
||||
test('getIpAddress: No header', () => {
|
||||
expect(getIpAddress(new Headers())).toEqual(null);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue