Function get_client_ip

Source
pub fn get_client_ip(session: &Session) -> String
Expand description

Gets client ip from X-Forwarded-For, If none, get from X-Real-Ip, If none, get remote addr.