Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Feb 5, 2024
1 parent deab1c1 commit 5c693bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mirrord/layer/src/socket/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1137,9 +1137,9 @@ pub(super) fn send_to(

// we don't support unix sockets which don't use `connect`
if (destination.is_unix() || user_socket_info.domain == AF_UNIX)
&& user_socket_info.user_socket_info.state != SocketState::Connected
&& !matches!(user_socket_info.state, SocketState::Connected(_))
{
return Bypass::UnixSocket(destination);
return Detour::Bypass(Bypass::Domain(AF_UNIX));
}

// Currently this flow only handles DNS resolution.
Expand Down Expand Up @@ -1223,9 +1223,9 @@ pub(super) fn sendmsg(

// we don't support unix sockets which don't use `connect`
if (destination.is_unix() || user_socket_info.domain == AF_UNIX)
&& user_socket_info.user_socket_info.state != SocketState::Connected
&& !matches!(user_socket_info.state, SocketState::Connected(_))
{
return Bypass::UnixSocket(destination);
return Detour::Bypass(Bypass::Domain(AF_UNIX));
}

// Currently this flow only handles DNS resolution.
Expand Down

0 comments on commit 5c693bc

Please sign in to comment.