pub fn ip(conn: &Conn, _color: bool) -> Cow<'static, str>
Expand description

formatter for the peer ip address of the connection

note: this can be modified by handlers prior to logging, such as when running a trillium application behind a reverse proxy or load balancer that sets a forwarded or x-forwarded-for header. this will display "-" if there is no available peer ip address, such as when running on a runtime adapter that does not have access to this information