Closed stevonjugush closed 2 years ago
According to this documentation (x-forwarded-for), the order of ip addresses in the x-forwarded-for header is:
X-Forwarded-For: <client>, <proxy1>, <proxy2>
From your documentation, you have highlighted that you pick the last one which conflicts with where the client ip is
This duplicates https://github.com/pbojinov/request-ip/issues/60
Thank you for your patience all and sorry about that!
Fixed in v3.0.1 that was just released.
Thanks @pbojinov.
According to this documentation (x-forwarded-for), the order of ip addresses in the x-forwarded-for header is:
X-Forwarded-For: <client>, <proxy1>, <proxy2>
From your documentation, you have highlighted that you pick the last one which conflicts with where the client ip is