Skip to content

Commit

Permalink
tungstenite update
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele-em committed Oct 26, 2023
1 parent 0d56dfd commit eed5151
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 18 deletions.
103 changes: 88 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proxyapi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ openssl = {version = "0.10.45", features = ["vendored"]}
thiserror = "1.0.38"
tokio = {version = "1.25.0", features = ["full"]}
tokio-rustls = "0.23.4"
tokio-tungstenite = {version = "0.18.0", features =["rustls-tls-webpki-roots"]}
tokio-tungstenite = {version = "0.20.1", features =["rustls-tls-webpki-roots"]}
proxyapi_models = {path = "../proxyapi_models"}
4 changes: 2 additions & 2 deletions proxyapi/src/proxy/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use tokio::{
net::TcpStream,
};
use tokio_rustls::TlsAcceptor;
use tokio_tungstenite::{tungstenite, Connector, WebSocketStream};
use tokio_tungstenite::{tungstenite, Connector};

pub struct InternalProxy<C, CA, H> {
pub ca: Arc<CA>,
Expand Down Expand Up @@ -188,7 +188,7 @@ where

async fn handle_websocket(
self,
_server_socket: WebSocketStream<Upgraded>,
_server_socket: hyper_tungstenite::WebSocketStream<Upgraded>,
_req: Request<()>,
) -> Result<(), tungstenite::Error> {
Ok(())
Expand Down

0 comments on commit eed5151

Please sign in to comment.