diff --git a/src/proxy/internal.rs b/src/proxy/internal.rs index 2b86056..bb38928 100644 --- a/src/proxy/internal.rs +++ b/src/proxy/internal.rs @@ -287,13 +287,13 @@ where #[instrument(skip_all)] async fn handle_websocket( self, - server_socket: WebSocketStream>, + client_socket: WebSocketStream>, 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,