Skip to content

Commit

Permalink
Merge pull request #35 from nemosupremo/feat/into_inner
Browse files Browse the repository at this point in the history
Add into_inner on Socks5Socket
  • Loading branch information
dizda authored Sep 15, 2023
2 parents 9ec5a65 + 59c3827 commit 4c3c337
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 @@ -326,6 +326,11 @@ impl<T: AsyncRead + AsyncWrite + Unpin, A: Authentication> Socks5Socket<T, A> {
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 4c3c337

Please sign in to comment.