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

feat(server): honor X-Forward-* headers #61

Merged
merged 2 commits into from
Jun 12, 2023
Merged

Conversation

tessus
Copy link
Collaborator

@tessus tessus commented Jun 12, 2023

Behind a reverse proxy, the log entries always showed the IP address of the reverse proxy. With this change the real IP address of the client is shown. Since the IP address is only used for info in the log, there are no security implications.

closes #54

Behind a reverse proxy, the log entries always showed the IP address of the reverse proxy.
With this change the real IP address of the client is shown.
Since the IP address is only used for info in the log, there are no security implications.
@tessus tessus requested a review from orhun as a code owner June 12, 2023 06:08
src/main.rs Outdated Show resolved Hide resolved
Copy link
Owner

@orhun orhun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

@tessus
Copy link
Collaborator Author

tessus commented Jun 12, 2023

You are welcome. I love rustypaste. Thanks for writing it!

@orhun orhun changed the title honor X-Forward-* headers feat(server): honor X-Forward-* headers Jun 12, 2023
@orhun orhun merged commit f7beaef into orhun:master Jun 12, 2023
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

Successfully merging this pull request may close these issues.

Support for Forwarded Headers
2 participants