diff --git a/src/socks5.rs b/src/socks5.rs index 77ea70e..b7cb796 100644 --- a/src/socks5.rs +++ b/src/socks5.rs @@ -96,7 +96,7 @@ pub async fn run_server(bind: SocketAddr) -> Result Vec { +fn new_reply(error: &ReplyError, sock_addr: SocketAddr) -> Vec { let (addr_type, mut ip_oct, mut port) = match sock_addr { SocketAddr::V4(sock) => ( consts::SOCKS5_ADDR_TYPE_IPV4,