in rocket 0.4 proxy remote ip has change #2266

Closed
opened 2025-10-09 17:54:11 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @TMHBOFH on GitHub.

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. 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
OVERLORD added the good first issueenhancement labels 2025-10-09 17:54:11 +03:00
Author
Owner

@dani-garcia commented on GitHub:

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

@dani-garcia commented on GitHub: 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: starred/vaultwarden#2266