Refacto: Use proper type for WsServer

This commit is contained in:
Σrebe - Romain GERARD 2024-07-30 09:10:25 +02:00
parent a33a889b3d
commit 7d30e0f462
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4
6 changed files with 422 additions and 411 deletions
src/protocols/tls

View file

@ -1,4 +1,3 @@
use crate::TlsServerConfig;
use anyhow::{anyhow, Context};
use std::fs::File;
@ -10,6 +9,7 @@ use tokio::net::TcpStream;
use tokio_rustls::client::TlsStream;
use crate::tunnel::client::WsClientConfig;
use crate::tunnel::server::TlsServerConfig;
use crate::tunnel::TransportAddr;
use tokio_rustls::rustls::client::danger::{HandshakeSignatureValid, ServerCertVerified, ServerCertVerifier};
use tokio_rustls::rustls::pki_types::{CertificateDer, PrivateKeyDer, ServerName, UnixTime};