We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 841c50c commit b005b1eCopy full SHA for b005b1e
src/http_server/https_server.rs
@@ -108,7 +108,13 @@ async fn lazy_accept_tcp_stream(
108
109
println!("Created config");
110
111
- let tls_stream = start.into_stream(config.into()).await.unwrap();
+ let tls_stream = start.into_stream(config.into()).await;
112
+
113
+ if let Err(err) = &tls_stream {
114
+ return Err(format!("failed to perform tls handshake: {err:#}"));
115
+ }
116
117
+ let tls_stream = tls_stream.unwrap();
118
119
println!("Applied config");
120
let cn_user_name = if let Some(client_cert_cell) = client_cert_cell {
0 commit comments