mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Merge branch 'dev'
Some checks failed
Node.js CI / build (postgresql, 18.18, 10) (push) Has been cancelled
Some checks failed
Node.js CI / build (postgresql, 18.18, 10) (push) Has been cancelled
This commit is contained in:
commit
aaa1f9dc58
1 changed files with 3 additions and 3 deletions
|
|
@ -1,16 +1,16 @@
|
|||
export const IP_ADDRESS_HEADERS = [
|
||||
'true-client-ip', // CDN
|
||||
'x-real-ip', // Reverse proxy
|
||||
'x-forwarded-for',
|
||||
'cf-connecting-ip', // Cloudflare
|
||||
'fastly-client-ip', // Fastly
|
||||
'x-nf-client-connection-ip', // Netlify
|
||||
'do-connecting-ip', // Digital Ocean
|
||||
'x-real-ip', // Reverse proxy
|
||||
'x-appengine-user-ip', // Google App Engine
|
||||
'x-forwarded-for',
|
||||
'forwarded',
|
||||
'x-client-ip',
|
||||
'x-cluster-client-ip',
|
||||
'x-forwarded',
|
||||
'forwarded',
|
||||
];
|
||||
|
||||
export function getIpAddress(headers: Headers) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue