Make it work

This commit is contained in:
Tony Klink 2024-01-15 16:39:55 -06:00
parent ddc5d11644
commit b63d7a4c53
Signed by: klink
GPG key ID: 85175567C4D19231

View file

@ -10,7 +10,8 @@ pub fn routes(context: Context) -> impl Filter<Extract = impl Reply, Error = Rej
}
fn index(context: Context) -> impl Filter<Extract = impl Reply, Error = Rejection> + Clone {
let real_client_ip = warp::header::optional::<std::net::SocketAddr>("X-Real-IP");
// let real_client_ip = warp::header::optional::<std::net::SocketAddr>("X-Real-IP");
let real_client_ip = warp::addr::remote();
warp::path::end()
.and(warp::ws())