Browse Source

useless close_connection removed

pull/66/head
ssrlive 3 years ago
parent
commit
2122cc0ba8
  1. 2
      src/http.rs
  2. 2
      src/socks.rs
  3. 1
      src/tun2proxy.rs

2
src/http.rs

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

2
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
}

1
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<Box<dyn ProxyHandler>>;
fn close_connection(&self, info: &ConnectionInfo);
fn get_server_addr(&self) -> SocketAddr;
fn get_credentials(&self) -> &Option<UserKey>;
}

Loading…
Cancel
Save