Skip to content

Commit

Permalink
Add into_inner on Socks5Socket
Browse files Browse the repository at this point in the history
  • Loading branch information
nemosupremo committed May 9, 2023
1 parent b792d00 commit 59c3827
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ impl<T: AsyncRead + AsyncWrite + Unpin> Socks5Socket<T> {
Ok(self)
}

/// Consumes the `Socks5Socket`, returning the wrapped stream.
pub fn into_inner(self) -> T {
self.inner
}

/// Read the authentication method provided by the client.
/// A client send a list of methods that he supports, he could send
///
Expand Down

0 comments on commit 59c3827

Please sign in to comment.