diff --git a/src/lib.rs b/src/lib.rs index 35c247d..4caad34 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,9 +38,9 @@ pub struct MitmProxy { pub tls_connector: tokio_native_tls::native_tls::TlsConnector, } -pub struct MitmProxyImpl { - pub root_cert: Option, - pub tls_connector: tokio_native_tls::TlsConnector, +struct MitmProxyImpl { + root_cert: Option, + tls_connector: tokio_native_tls::TlsConnector, } impl MitmProxy { @@ -82,7 +82,6 @@ pub struct Communication { pub upgrade: futures::channel::oneshot::Receiver, } -/// C is typically Arc or &'static Certificate impl + Send + Sync + 'static> MitmProxy { /// Bind proxy server to address. /// You can observe communications between client and server by receiving stream.