Skip to content

Commit

Permalink
Pass the request local and remote addr to the `Service::hyper_handler…
Browse files Browse the repository at this point in the history
…` function (#636)
  • Loading branch information
TheAwiteb authored Jan 13, 2024
1 parent 7ec8f1a commit bbc4d78
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions crates/core/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,14 @@ impl Service {
#[inline]
pub async fn handle(&self, request: impl Into<Request> + Send) -> Response {
let request = request.into();
self.hyper_handler(SocketAddr::Unknown, SocketAddr::Unknown, request.scheme.clone(), None)
.handle(request)
.await
self.hyper_handler(
request.local_addr.clone(),
request.remote_addr.clone(),
request.scheme.clone(),
None,
)
.handle(request)
.await
}
}

Expand Down

0 comments on commit bbc4d78

Please sign in to comment.