From 3585f3b22a27dd3b9f984e0aac22af1913d67e1c Mon Sep 17 00:00:00 2001 From: hatoo Date: Sat, 23 Dec 2023 15:46:06 +0900 Subject: [PATCH] priv --- src/lib.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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.