Skip to content

Conversation

@vlasky
Copy link
Contributor

@vlasky vlasky commented May 30, 2025

Fixed incorrect parsing of the HTTP X-Forwarded-For header when the --ip-header commandline option is used in server mode.

We should not assume that the X-Forwarded-For header (and synonyms) contain only the client's IP address. The header can contain a comma-separated list that also includes proxies in the chain.

See the following:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-For

…-ip-header commandline option is used in server mode.

We should not assume that the X-Forwarded-For header (and synonyms) contain only the client's IP address. The header can contain a comma-separated list that also includes proxies in the chain.

See the following:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-For
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant