Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RightmostTrustedRangeStrategy is leftmost #3

Open
remram44 opened this issue May 19, 2024 · 0 comments
Open

RightmostTrustedRangeStrategy is leftmost #3

remram44 opened this issue May 19, 2024 · 0 comments

Comments

@remram44
Copy link

remram44 commented May 19, 2024

RightmostTrustedRangeStrategy goes from right to left, until it finds an untrusted IP. That is the rightmost untrusted IP. It then returns that IP, e.g. that was provided by the proxy right of that, the leftmost trusted proxy.

In other words, it gives the rightmost untrusted IP, or the one from the leftmost trusted IP.

The name is wrong.

Example:

X-Forwarded-For: untrusted1 untrusted2 trusted3 trusted4

Would return untrusted2, the rightmost untrusted IP, provided by trusted3, the leftmost trusted proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant