From 28d54be6388fe6d698deb0c7d9171d4c26e378ae Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Sat, 9 Nov 2024 18:30:56 +0800 Subject: [PATCH] Bump version 0.6.4 --- Cargo.toml | 2 +- src/udpgw.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a227dcb..e9351ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tun2proxy" -version = "0.6.3" +version = "0.6.4" edition = "2021" license = "MIT" repository = "https://github.com/tun2proxy/tun2proxy" diff --git a/src/udpgw.rs b/src/udpgw.rs index ae2cb87..baa7d36 100644 --- a/src/udpgw.rs +++ b/src/udpgw.rs @@ -218,7 +218,7 @@ impl StreamOperation for Packet { impl AsyncStreamOperation for Packet { async fn retrieve_from_async_stream(r: &mut R) -> std::io::Result where - R: tokio::io::AsyncRead + Unpin + Send, + R: tokio::io::AsyncRead + Unpin + Send + ?Sized, Self: Sized, { let mut buf = [0; UDPGW_LENGTH_FIELD_SIZE]; @@ -277,7 +277,7 @@ impl StreamOperation for UdpgwHeader { impl AsyncStreamOperation for UdpgwHeader { async fn retrieve_from_async_stream(r: &mut R) -> std::io::Result where - R: tokio::io::AsyncRead + Unpin + Send, + R: tokio::io::AsyncRead + Unpin + Send + ?Sized, Self: Sized, { let mut buf = [0; UdpgwHeader::static_len()];