From 2122cc0ba81dd803f6ee220f4a22587989dbccb2 Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Sat, 2 Sep 2023 20:39:58 +0800 Subject: [PATCH] useless close_connection removed --- src/http.rs | 2 -- src/socks.rs | 2 -- src/tun2proxy.rs | 1 - 3 files changed, 5 deletions(-) diff --git a/src/http.rs b/src/http.rs index c33e2d0..8aabf2f 100644 --- a/src/http.rs +++ b/src/http.rs @@ -406,8 +406,6 @@ impl ConnectionManager for HttpManager { )?)) } - fn close_connection(&self, _: &ConnectionInfo) {} - fn get_server_addr(&self) -> SocketAddr { self.server } diff --git a/src/socks.rs b/src/socks.rs index 0be1afb..216dd48 100644 --- a/src/socks.rs +++ b/src/socks.rs @@ -350,8 +350,6 @@ impl ConnectionManager for SocksProxyManager { Ok(Box::new(SocksProxyImpl::new(info, credentials, self.version, command)?)) } - fn close_connection(&self, _: &ConnectionInfo) {} - fn get_server_addr(&self) -> SocketAddr { self.server } diff --git a/src/tun2proxy.rs b/src/tun2proxy.rs index 4827827..a8df375 100644 --- a/src/tun2proxy.rs +++ b/src/tun2proxy.rs @@ -204,7 +204,6 @@ pub(crate) trait ProxyHandler { pub(crate) trait ConnectionManager { fn new_proxy_handler(&self, info: &ConnectionInfo, udp_associate: bool) -> Result>; - fn close_connection(&self, info: &ConnectionInfo); fn get_server_addr(&self) -> SocketAddr; fn get_credentials(&self) -> &Option; }