Make it work
This commit is contained in:
parent
ddc5d11644
commit
b63d7a4c53
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue