mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Compare commits
2 commits
24b017cad8
...
aaa1f9dc58
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aaa1f9dc58 | ||
|
|
abc1b50ad0 |
1 changed files with 3 additions and 3 deletions
|
|
@ -1,16 +1,16 @@
|
||||||
export const IP_ADDRESS_HEADERS = [
|
export const IP_ADDRESS_HEADERS = [
|
||||||
'true-client-ip', // CDN
|
'true-client-ip', // CDN
|
||||||
'x-real-ip', // Reverse proxy
|
|
||||||
'x-forwarded-for',
|
|
||||||
'cf-connecting-ip', // Cloudflare
|
'cf-connecting-ip', // Cloudflare
|
||||||
'fastly-client-ip', // Fastly
|
'fastly-client-ip', // Fastly
|
||||||
'x-nf-client-connection-ip', // Netlify
|
'x-nf-client-connection-ip', // Netlify
|
||||||
'do-connecting-ip', // Digital Ocean
|
'do-connecting-ip', // Digital Ocean
|
||||||
|
'x-real-ip', // Reverse proxy
|
||||||
'x-appengine-user-ip', // Google App Engine
|
'x-appengine-user-ip', // Google App Engine
|
||||||
|
'x-forwarded-for',
|
||||||
|
'forwarded',
|
||||||
'x-client-ip',
|
'x-client-ip',
|
||||||
'x-cluster-client-ip',
|
'x-cluster-client-ip',
|
||||||
'x-forwarded',
|
'x-forwarded',
|
||||||
'forwarded',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export function getIpAddress(headers: Headers) {
|
export function getIpAddress(headers: Headers) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue