mirror of
https://github.com/actix/actix-web.git
synced 2025-04-14 22:04:06 +00:00
Merge bd8e3cf5fc
into 74c1c3de59
This commit is contained in:
commit
e25c4a7c3e
2 changed files with 2 additions and 2 deletions
|
@ -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`
|
||||
|
|
|
@ -264,7 +264,7 @@ impl HttpRequest {
|
|||
///
|
||||
/// For expanded client connection information, use [`connection_info`] instead.
|
||||
///
|
||||
/// Will only return None when called in unit tests unless [`TestRequest::peer_addr`] is used.
|
||||
/// Will return None when server listens on UDS socket or when called in unit tests unless [`TestRequest::peer_addr`] is used.
|
||||
///
|
||||
/// [`TestRequest::peer_addr`]: crate::test::TestRequest::peer_addr
|
||||
/// [`connection_info`]: Self::connection_info
|
||||
|
|
Loading…
Reference in a new issue