Read local_addr from socket

This commit is contained in:
Martin Algesten
2023-04-16 10:59:27 +02:00
parent bfb0ef16e1
commit 7e32dbaaaf
2 changed files with 21 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ impl<T: AsRef<[u8]> + Send + Sync + 'static> From<http::Response<T>> for Respons
.collect::<Vec<_>>(),
reader: Box::new(Cursor::new(value.into_body())),
remote_addr: SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 80),
local_addr: None,
history: vec![],
}
}