diff --git a/socks5-client/src/lib.rs b/socks5-client/src/lib.rs index feb82d8..b1b9f9a 100644 --- a/socks5-client/src/lib.rs +++ b/socks5-client/src/lib.rs @@ -131,7 +131,7 @@ impl Socks5 { Ok(vec![]) } Socks5::Active(_) => Err(Error::Completed), - _ => Err(Error::Closed), + Socks5::Rejected(_) | Socks5::Failed(_) => Err(Error::Closed), } }