Skip to content

Commit

Permalink
fix: swap WebSocketContext
Browse files Browse the repository at this point in the history
  • Loading branch information
omjadas committed Apr 27, 2024
1 parent 800a2fe commit 721c44c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/proxy/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@ where
#[instrument(skip_all)]
async fn handle_websocket(
self,
server_socket: WebSocketStream<TokioIo<Upgraded>>,
client_socket: WebSocketStream<TokioIo<Upgraded>>,
req: Request<()>,
) -> Result<(), tungstenite::Error> {
let uri = req.uri().clone();

#[cfg(any(feature = "rustls-client", feature = "native-tls-client"))]
let (client_socket, _) = tokio_tungstenite::connect_async_tls_with_config(
let (server_socket, _) = tokio_tungstenite::connect_async_tls_with_config(
req,
None,
false,
Expand Down

0 comments on commit 721c44c

Please sign in to comment.