Skip to content

Commit

Permalink
Refacto: Use proper type for WsClient
Browse files Browse the repository at this point in the history
  • Loading branch information
erebe committed Jul 30, 2024
1 parent 5e74ed2 commit a33a889
Show file tree
Hide file tree
Showing 11 changed files with 453 additions and 412 deletions.
185 changes: 35 additions & 150 deletions src/main.rs

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/protocols/tls/server.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{TlsServerConfig, WsClientConfig};
use crate::TlsServerConfig;
use anyhow::{anyhow, Context};
use std::fs::File;

Expand All @@ -9,6 +9,7 @@ use std::sync::Arc;
use tokio::net::TcpStream;
use tokio_rustls::client::TlsStream;

use crate::tunnel::client::WsClientConfig;
use crate::tunnel::TransportAddr;
use tokio_rustls::rustls::client::danger::{HandshakeSignatureValid, ServerCertVerified, ServerCertVerifier};
use tokio_rustls::rustls::pki_types::{CertificateDer, PrivateKeyDer, ServerName, UnixTime};
Expand Down
176 changes: 0 additions & 176 deletions src/tunnel/client.rs

This file was deleted.

Loading

0 comments on commit a33a889

Please sign in to comment.