Remote column is not receiving the remote address, only the socket address #1

Closed
opened 2023-10-15 12:29:27 +00:00 by BlakeRain · 0 comments
Owner

Currently any stored paste is recording something like socket://172.17.0.1:12345 rather than the actual external address. Probably this is because I needed to use something other than RemoteAddr to get the actual remote address.

As cement is running behind a proxy, I probably need to use RealIp, as this seems to examine headers such as X-Forwarded-For and so on.

Currently any stored paste is recording something like `socket://172.17.0.1:12345` rather than the actual external address. Probably this is because I needed to use something other than [`RemoteAddr`](https://docs.rs/poem/latest/poem/web/struct.RemoteAddr.html) to get the actual remote address. As `cement` is running behind a proxy, I probably need to use [`RealIp`](https://docs.rs/poem/latest/poem/web/struct.RealIp.html), as this seems to examine headers such as `X-Forwarded-For` and so on.
BlakeRain added the
bug
label 2023-10-15 12:29:27 +00:00
BlakeRain added this to the 1.1.3 milestone 2023-10-15 12:30:14 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: BlakeRain/cement#1
No description provided.