1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-05-19 07:23:17 +02:00

docs: fix ConnectionInfo::realip_remote_addr documentation

This commit is contained in:
Rob Ede 2025-05-10 01:21:34 +01:00
parent 9bbb5414d1
commit 40179e2aa6
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -158,7 +158,7 @@ impl ConnectionInfo {
/// The address is resolved through the following, in order: /// The address is resolved through the following, in order:
/// - `Forwarded` header /// - `Forwarded` header
/// - `X-Forwarded-For` 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 /// # Security
/// Do not use this function for security purposes unless you can be sure that the `Forwarded` /// Do not use this function for security purposes unless you can be sure that the `Forwarded`