add error logging to the connecting stage of the proxies
This commit is contained in:
parent
a3c58ee231
commit
f12904909a
2 changed files with 18 additions and 9 deletions
|
|
@ -107,10 +107,13 @@ async fn main() {
|
|||
return;
|
||||
}
|
||||
|
||||
let Ok(mut stream)
|
||||
= tls_connect_to(&dest).await else {
|
||||
error!("failed to connect");
|
||||
return;
|
||||
let mut stream
|
||||
= match tls_connect_to(&dest).await {
|
||||
Ok(v) => v,
|
||||
Err(e) => {
|
||||
error!("unable to connect: {}", e);
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
if let Err(e) = stream.send_buffer(&ConnectionInitData{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue