preparation work for udp association

This commit is contained in:
Σrebe - Romain GERARD 2024-01-06 20:10:03 +01:00
parent 7ac89276bd
commit 23a38fced0
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4
5 changed files with 75 additions and 7 deletions

View file

@ -794,7 +794,7 @@ async fn main() {
let server = socks5::run_server(tunnel.local)
.await
.unwrap_or_else(|err| panic!("Cannot start Socks5 server on {}: {}", tunnel.local, err))
.map_ok(|(stream, remote_dest)| (stream.into_split(), remote_dest));
.map_ok(|(stream, remote_dest)| (tokio::io::split(stream), remote_dest));
tokio::spawn(async move {
if let Err(err) = tunnel::client::run_tunnel(client_config, tunnel, server).await {