|
|
|
@ -233,14 +233,14 @@ impl ConnectionManager for Socks5Manager { |
|
|
|
connection.proto == smoltcp::wire::IpProtocol::Tcp.into() |
|
|
|
} |
|
|
|
|
|
|
|
fn new_connection(&mut self, connection: &Connection) -> Option<std::boxed::Box<dyn TcpProxy>> { |
|
|
|
fn new_connection(&self, connection: &Connection) -> Option<std::boxed::Box<dyn TcpProxy>> { |
|
|
|
if connection.proto != smoltcp::wire::IpProtocol::Tcp.into() { |
|
|
|
return None; |
|
|
|
} |
|
|
|
Some(std::boxed::Box::new(SocksConnection::new(connection))) |
|
|
|
} |
|
|
|
|
|
|
|
fn close_connection(&mut self, _: &Connection) {} |
|
|
|
fn close_connection(&self, _: &Connection) {} |
|
|
|
|
|
|
|
fn get_server(&self) -> SocketAddr { |
|
|
|
self.server |
|
|
|
|