Skip to main content

Module ip_source

Module ip_source 

Source
Expand description

Defines sources for trusted client IP extraction.

IpSource enumerates the TCP peer address and supported forwarding headers. The default uses the TCP peer address without trusting a proxy.

Re-exportsΒ§

use std::net::IpAddr; πŸ”’
use std::net::Ipv4Addr; πŸ”’
use std::net::SocketAddr; πŸ”’
use serde::Deserialize; πŸ”’
use serde::Deserialize; πŸ”’
use crate::implement; πŸ”’

EnumsΒ§

IpSource
Selects the source used to determine the connecting client’s IP address.

ConstantsΒ§

UNIX_SOCKET_PEER
The stand-in peer address the Unix listener reports for every client.