mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-21 14:29:10 +00:00
useless close_connection removed
This commit is contained in:
parent
538e40d05b
commit
2122cc0ba8
3 changed files with 0 additions and 5 deletions
|
@ -406,8 +406,6 @@ impl ConnectionManager for HttpManager {
|
|||
)?))
|
||||
}
|
||||
|
||||
fn close_connection(&self, _: &ConnectionInfo) {}
|
||||
|
||||
fn get_server_addr(&self) -> SocketAddr {
|
||||
self.server
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -204,7 +204,6 @@ pub(crate) trait ProxyHandler {
|
|||
|
||||
pub(crate) trait ConnectionManager {
|
||||
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_credentials(&self) -> &Option<UserKey>;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue