Update lib.rs (#130)

Fix #129
This commit is contained in:
James Brown 2024-06-28 01:35:49 +08:00 committed by GitHub
parent 060ca5740f
commit 48f527ad81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -134,7 +134,7 @@ async fn create_udp_stream(socket_queue: &Option<Arc<SocketQueue>>, peer: Socket
Some(queue) => { Some(queue) => {
let socket = queue.recv_udp(peer.ip().into()).await?; let socket = queue.recv_udp(peer.ip().into()).await?;
socket.connect(peer).await?; socket.connect(peer).await?;
UdpStream::from_tokio(socket).await UdpStream::from_tokio(socket, peer).await
} }
} }
} }