We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 24b017c + abc1b50 commit aaa1f9dCopy full SHA for aaa1f9d
src/lib/ip.ts
@@ -1,16 +1,16 @@
1
export const IP_ADDRESS_HEADERS = [
2
'true-client-ip', // CDN
3
- 'x-real-ip', // Reverse proxy
4
- 'x-forwarded-for',
5
'cf-connecting-ip', // Cloudflare
6
'fastly-client-ip', // Fastly
7
'x-nf-client-connection-ip', // Netlify
8
'do-connecting-ip', // Digital Ocean
+ 'x-real-ip', // Reverse proxy
9
'x-appengine-user-ip', // Google App Engine
+ 'x-forwarded-for',
10
+ 'forwarded',
11
'x-client-ip',
12
'x-cluster-client-ip',
13
'x-forwarded',
- 'forwarded',
14
];
15
16
export function getIpAddress(headers: Headers) {
0 commit comments