1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2025-04-16 14:54:15 +00:00

Fix ConnectionInfo::realip_remote_addr documentation

This commit is contained in:
silverpill 2025-04-08 21:41:11 +00:00 committed by GitHub
parent 36fed765eb
commit bd8e3cf5fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -158,7 +158,7 @@ impl ConnectionInfo {
/// The address is resolved through the following, in order:
/// - `Forwarded` header
/// - `X-Forwarded-For` header
/// - peer address of opened socket (same as [`remote_addr`](Self::remote_addr))
/// - peer address of opened socket (same as [`peer_addr`](Self::peer_addr))
///
/// # Security
/// Do not use this function for security purposes unless you can be sure that the `Forwarded`