Browse Source

Bump version 0.6.4

pull/166/head v0.6.4
ssrlive 2 years ago
parent
commit
28d54be638
  1. 2
      Cargo.toml
  2. 4
      src/udpgw.rs

2
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"

4
src/udpgw.rs

@ -218,7 +218,7 @@ impl StreamOperation for Packet {
impl AsyncStreamOperation for Packet {
async fn retrieve_from_async_stream<R>(r: &mut R) -> std::io::Result<Self>
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>(r: &mut R) -> std::io::Result<Self>
where
R: tokio::io::AsyncRead + Unpin + Send,
R: tokio::io::AsyncRead + Unpin + Send + ?Sized,
Self: Sized,
{
let mut buf = [0; UdpgwHeader::static_len()];

Loading…
Cancel
Save