Skip to content

Commit

Permalink
windows wip - 3
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiapple852 committed Aug 1, 2024
1 parent 22bea0c commit a0bb3c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/trippy-core/src/net/platform/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use windows_sys::Win32::Networking::WinSock::{
IN_ADDR_0, IPPROTO_RAW, IPPROTO_TCP, SIO_ROUTING_INTERFACE_QUERY, SOCKADDR_IN, SOCKADDR_IN6,
SOCKADDR_IN6_0, SOCKADDR_STORAGE, SOCKET_ERROR, SOL_SOCKET, SO_ERROR, SO_PORT_SCALABILITY,
SO_REUSE_UNICASTPORT, TCP_FAIL_CONNECT_ON_ICMP_ERROR, TCP_ICMP_ERROR_INFO, WSABUF, WSADATA,
WSAEADDRNOTAVAIL, WSAECONNREFUSED, WSAEHOSTUNREACH, WSAEINPROGRESS, WSAENETUNREACH,
WSAEADDRNOTAVAIL, WSAECONNREFUSED, WSAEHOSTUNREACH, WSAEINPROGRESS, WSAENETUNREACH, WSAENOBUFS,
WSA_IO_INCOMPLETE, WSA_IO_PENDING,
};
use windows_sys::Win32::System::IO::OVERLAPPED;
Expand Down Expand Up @@ -602,6 +602,8 @@ impl From<&StdIoError> for ErrorKind {
== StdIoError::from_raw_os_error(WSAENETUNREACH).raw_os_error()
{
Self::NetUnreachable
} else if value.raw_os_error() == StdIoError::from_raw_os_error(WSAENOBUFS).raw_os_error() {
Self::NetUnreachable
} else {
Self::Std(value.kind())
}
Expand Down

0 comments on commit a0bb3c9

Please sign in to comment.