Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
indexds committed Dec 28, 2024
1 parent bd299cb commit ca0b8fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ impl EspHttpRawConnection<'_> {
}

let mut address = sockaddr_in6 {
sin6_len: mem::size_of::<sockaddr_in6>() as u8,
sin6_len: core::mem::size_of::<sockaddr_in6>() as u8,
sin6_family: AF_INET6 as u8,
sin6_port: 0,
sin6_addr: in6_addr {
Expand All @@ -883,7 +883,7 @@ impl EspHttpRawConnection<'_> {
sin6_scope_id: 0,
};

let mut addr_len = mem::size_of::<sockaddr_in6>() as socklen_t;
let mut addr_len = core::mem::size_of::<sockaddr_in6>() as socklen_t;

esp!(lwip_getpeername(
sockfd,
Expand Down

0 comments on commit ca0b8fa

Please sign in to comment.