From 5398cd89fe7d4d27efc8d96a720e1d217954a43e Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Mon, 3 Nov 2025 21:01:12 -0800 Subject: [PATCH] Reordered IP headers. --- src/lib/ip.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ip.ts b/src/lib/ip.ts index a818f03d..9e0f9910 100644 --- a/src/lib/ip.ts +++ b/src/lib/ip.ts @@ -1,9 +1,9 @@ export const IP_ADDRESS_HEADERS = [ - 'x-real-ip', + 'true-client-ip', // CDN + 'x-real-ip', // Reverse proxy 'x-forwarded-for', 'cf-connecting-ip', // Cloudflare 'fastly-client-ip', // Fastly - 'true-client-ip', // Akamai 'x-nf-client-connection-ip', // Netlify 'do-connecting-ip', // Digital Ocean 'x-appengine-user-ip', // Google App Ending