Skip to content

Commit aaa1f9d

Browse files
committed
Merge branch 'dev'
2 parents 24b017c + abc1b50 commit aaa1f9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/ip.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
export const IP_ADDRESS_HEADERS = [
22
'true-client-ip', // CDN
3-
'x-real-ip', // Reverse proxy
4-
'x-forwarded-for',
53
'cf-connecting-ip', // Cloudflare
64
'fastly-client-ip', // Fastly
75
'x-nf-client-connection-ip', // Netlify
86
'do-connecting-ip', // Digital Ocean
7+
'x-real-ip', // Reverse proxy
98
'x-appengine-user-ip', // Google App Engine
9+
'x-forwarded-for',
10+
'forwarded',
1011
'x-client-ip',
1112
'x-cluster-client-ip',
1213
'x-forwarded',
13-
'forwarded',
1414
];
1515

1616
export function getIpAddress(headers: Headers) {

0 commit comments

Comments
 (0)