mirror of
https://github.com/umami-software/umami.git
synced 2026-02-16 10:35:35 +01:00
Compare commits
No commits in common. "aaa1f9dc58feafe6af54248c5f0611112786fddf" and "24b017cad82b117723705ab7af36aedfdf4602f1" have entirely different histories.
aaa1f9dc58
...
24b017cad8
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