preparation work for udp association
This commit is contained in:
parent
7ac89276bd
commit
23a38fced0
5 changed files with 75 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue