in rocket 0.4 proxy remote ip has change #150

Closed
opened 2025-11-07 06:25:56 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @TMHBOFH on GitHub (Dec 9, 2018).

Hi,
with rocket 0.4 the function to get the remote ip has change.
Please see the changelog.

Request::remote() returns the actual remote IP, doesn't rewrite.

Use Request::real_ip() or Request::client_ip() to retrieve the IP address from the "X-Real-IP" header if it is present.

Thanks for your great work on this project.
best regards

Originally created by @TMHBOFH on GitHub (Dec 9, 2018). Hi, with rocket 0.4 the function to get the remote ip has change. Please see the [changelog](https://github.com/SergioBenitez/Rocket/blob/a4dcb0cf4cfd28671bbc8f101a99dfa1a74668b9/CHANGELOG.md). > Request::remote() returns the actual remote IP, doesn't rewrite. > > Use Request::real_ip() or Request::client_ip() to retrieve the IP address from the "X-Real-IP" header if it is present. Thanks for your great work on this project. best regards
GiteaMirror added the enhancementgood first issue labels 2025-11-07 06:25:56 -06:00
Author
Owner

@dani-garcia commented on GitHub (Dec 9, 2018):

This should be fixed in the latest beta commit, good eye!

@dani-garcia commented on GitHub (Dec 9, 2018): This should be fixed in the latest beta commit, good eye!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#150