Skip to content

Commit

Permalink
chore(proxy): adjusted logs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobressan committed Feb 23, 2024
1 parent 313821c commit dcba11f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.with_single_cert(certs, private_key)?;
let acceptor = TlsAcceptor::from(Arc::new(config.clone()));

format!("Proxy server listening");
println!("Proxy server listening");

loop {
let (inbound, _) = listener.accept().await?;
let acceptor = acceptor.clone();

let mut outbound = TcpStream::connect(server_addr.clone()).await?;
let mut outbound = TcpStream::connect(server_addr).await?;

tokio::spawn(async move {
let mut tls_stream = acceptor.accept(inbound).await.unwrap();
Expand Down

0 comments on commit dcba11f

Please sign in to comment.