useless close_connection removed

This commit is contained in:
ssrlive 2023-09-02 20:39:58 +08:00
parent 538e40d05b
commit 2122cc0ba8
3 changed files with 0 additions and 5 deletions

View file

@ -406,8 +406,6 @@ impl ConnectionManager for HttpManager {
)?)) )?))
} }
fn close_connection(&self, _: &ConnectionInfo) {}
fn get_server_addr(&self) -> SocketAddr { fn get_server_addr(&self) -> SocketAddr {
self.server self.server
} }

View file

@ -350,8 +350,6 @@ impl ConnectionManager for SocksProxyManager {
Ok(Box::new(SocksProxyImpl::new(info, credentials, self.version, command)?)) Ok(Box::new(SocksProxyImpl::new(info, credentials, self.version, command)?))
} }
fn close_connection(&self, _: &ConnectionInfo) {}
fn get_server_addr(&self) -> SocketAddr { fn get_server_addr(&self) -> SocketAddr {
self.server self.server
} }

View file

@ -204,7 +204,6 @@ pub(crate) trait ProxyHandler {
pub(crate) trait ConnectionManager { pub(crate) trait ConnectionManager {
fn new_proxy_handler(&self, info: &ConnectionInfo, udp_associate: bool) -> Result<Box<dyn ProxyHandler>>; fn new_proxy_handler(&self, info: &ConnectionInfo, udp_associate: bool) -> Result<Box<dyn ProxyHandler>>;
fn close_connection(&self, info: &ConnectionInfo);
fn get_server_addr(&self) -> SocketAddr; fn get_server_addr(&self) -> SocketAddr;
fn get_credentials(&self) -> &Option<UserKey>; fn get_credentials(&self) -> &Option<UserKey>;
} }