diff --git a/client/src/socks5/mod.rs b/client/src/socks5/mod.rs index b7ec5e6..091af9c 100644 --- a/client/src/socks5/mod.rs +++ b/client/src/socks5/mod.rs @@ -38,6 +38,7 @@ impl Socks5 { } else { let socket = Socket::new(Domain::IPV6, Type::STREAM, Some(Protocol::TCP))?; socket.set_only_v6(false)?; + socket.set_reuse_address(true)?; socket.bind(&SockAddr::from(local_addr))?; socket.listen(128)?; TcpListener::from_std(StdTcpListener::from(socket))?