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

HTTPRequest.Address including X-Forwarded-For #107

Merged
merged 1 commit into from
Aug 3, 2024
Merged

Conversation

swhitty
Copy link
Owner

@swhitty swhitty commented Aug 3, 2024

Adds HTTPRequest.remoteAddress allowing handlers to receive the address and port of the remove client making the request.

HTTPRequest.remoteIPAddress is also added as a convenience, preferring the client value from the X-Forwarded-For header which is useful for handlers running behind a reverse proxy.

@swhitty swhitty mentioned this pull request Aug 3, 2024
@swhitty swhitty merged commit 0c8b506 into main Aug 3, 2024
8 checks passed
@swhitty swhitty deleted the remote-address branch August 3, 2024 02:36
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.

1 participant