From 59c38275a73c707440100986d66559fb628c5048 Mon Sep 17 00:00:00 2001 From: nemosupremo Date: Tue, 9 May 2023 04:25:53 +0000 Subject: [PATCH] Add into_inner on Socks5Socket --- src/server.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server.rs b/src/server.rs index cd25989..e518db0 100644 --- a/src/server.rs +++ b/src/server.rs @@ -249,6 +249,11 @@ impl Socks5Socket { 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 ///