Refacto: Use proper type for WsClient

This commit is contained in:
Σrebe - Romain GERARD 2024-07-29 23:08:40 +02:00
parent 5e74ed233d
commit a33a889b3d
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4
11 changed files with 453 additions and 412 deletions

View file

@ -1,4 +1,4 @@
use crate::{TlsServerConfig, WsClientConfig};
use crate::TlsServerConfig;
use anyhow::{anyhow, Context};
use std::fs::File;
@ -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};