Skip to content

Commit

Permalink
Canonical address in HTTP requests
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Oct 15, 2024
1 parent 946ad36 commit 57140b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/librqbit/src/http_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,7 @@ impl HttpApi {
if let Some(ConnectInfo(addr)) =
req.extensions().get::<ConnectInfo<SocketAddr>>()
{
let addr = SocketAddr::new(addr.ip().to_canonical(), addr.port());
error_span!("request", %method, %uri, %addr)
} else {
error_span!("request", %method, %uri)
Expand Down

0 comments on commit 57140b6

Please sign in to comment.