Skip to content

Commit

Permalink
Fixed accepting TLS Stream
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Apr 24, 2024
1 parent 841c50c commit b005b1e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/http_server/https_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@ async fn lazy_accept_tcp_stream(

println!("Created config");

let tls_stream = start.into_stream(config.into()).await.unwrap();
let tls_stream = start.into_stream(config.into()).await;

if let Err(err) = &tls_stream {
return Err(format!("failed to perform tls handshake: {err:#}"));
}

let tls_stream = tls_stream.unwrap();

println!("Applied config");
let cn_user_name = if let Some(client_cert_cell) = client_cert_cell {
Expand Down

0 comments on commit b005b1e

Please sign in to comment.