Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Itsusinn committed Dec 23, 2024
1 parent c48a4d7 commit e076931
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion clash_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ async-trait = "0.1"
hyper = { version = "1", features = ["http1","http2","client", "server"] }
hyper-util = "0.1"


# Network proto
http = { version = "1" }
http-body-util = "0.1.2"
Expand Down
2 changes: 1 addition & 1 deletion clash_lib/src/proxy/tuic/handle_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl TuicConnection {
Ok(()) => Ok(()),
Err(err) => {
tracing::warn!("[udp] [dissociate] [{assoc_id:#06x}] {err}");
Err(err)?
Err(anyhow::anyhow!(err))
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions clash_lib/src/proxy/tuic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use std::{
time::Duration,
};

use tokio_util::compat::FuturesAsyncReadCompatExt;
use uuid::Uuid;

use crate::{
Expand Down Expand Up @@ -283,7 +282,7 @@ impl Handler {
) -> Result<BoxedChainedStream> {
let conn = self.get_conn(&resolver, sess).await?;
let dest = sess.destination.clone().into_tuic();
let tuic_tcp = conn.connect_tcp(dest).await?.compat();
let tuic_tcp = conn.connect_tcp(dest).await?;
let s = ChainedStreamWrapper::new(tuic_tcp);
s.append_to_chain(self.name()).await;
Ok(Box::new(s))
Expand Down

0 comments on commit e076931

Please sign in to comment.